From 68c1b7cc637b896386e7d06199712d6d84f59bcd Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Thu, 17 Dec 2020 21:47:36 +0000 Subject: [PATCH] Encode unicode in JSX differently to attempt to fix issue with unicode translation on some non-utf8 systems. --- bemani/frontend/static/components/checkbox.react.js | 4 ++-- bemani/frontend/static/components/nav.react.js | 2 +- bemani/frontend/static/components/table.react.js | 6 +++--- bemani/frontend/static/controllers/arcade/arcade.react.js | 2 +- bemani/frontend/static/controllers/ddr/settings.react.js | 2 +- bemani/frontend/static/controllers/iidx/settings.react.js | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bemani/frontend/static/components/checkbox.react.js b/bemani/frontend/static/components/checkbox.react.js index cec47d3..df74319 100644 --- a/bemani/frontend/static/components/checkbox.react.js +++ b/bemani/frontend/static/components/checkbox.react.js @@ -5,8 +5,8 @@ var Checkbox = React.createClass({ return ( {this.props.checked ? - : - + { "\u2611" } : + { "\u2610" } } ); diff --git a/bemani/frontend/static/components/nav.react.js b/bemani/frontend/static/components/nav.react.js index 57a8827..cdaf5c2 100644 --- a/bemani/frontend/static/components/nav.react.js +++ b/bemani/frontend/static/components/nav.react.js @@ -12,7 +12,7 @@ var Nav = React.createClass({ {this.props.title} {this.props.showAlert ? - : + { "\u26a0" } : null } diff --git a/bemani/frontend/static/components/table.react.js b/bemani/frontend/static/components/table.react.js index 080b593..bc92cc2 100644 --- a/bemani/frontend/static/components/table.react.js +++ b/bemani/frontend/static/components/table.react.js @@ -64,19 +64,19 @@ var Table = React.createClass({ var click = null; if (index == this.state.sortCol) { if (this.state.sortDir < 0) { - sort = ; + sort = { " \u2191" }; click = function() { this.setState({sortDir: 1}); }.bind(this); } else { - sort = ; + sort = { " \u2193" }; click = function() { this.setState({sortDir: -1}); }.bind(this); } } else { if (column.sort) { - sort = ; + sort = { " \u2195" }; click = function() { this.setState({sortCol: index, sortDir: column.reverse ? 1 : -1}); }.bind(this); diff --git a/bemani/frontend/static/controllers/arcade/arcade.react.js b/bemani/frontend/static/controllers/arcade/arcade.react.js index 44f555c..2a7e5c9 100644 --- a/bemani/frontend/static/controllers/arcade/arcade.react.js +++ b/bemani/frontend/static/controllers/arcade/arcade.react.js @@ -481,7 +481,7 @@ var arcade_management = React.createClass({ null } { this.state.settings_saved[this.state.current_setting] ? - : + { "\u2713" } : null } diff --git a/bemani/frontend/static/controllers/ddr/settings.react.js b/bemani/frontend/static/controllers/ddr/settings.react.js index 05ce8bc..e28b6cb 100644 --- a/bemani/frontend/static/controllers/ddr/settings.react.js +++ b/bemani/frontend/static/controllers/ddr/settings.react.js @@ -378,7 +378,7 @@ var settings_view = React.createClass({ null } { this.state.options_saved[this.state.version] ? - : + { "\u2713" } : null } : null diff --git a/bemani/frontend/static/controllers/iidx/settings.react.js b/bemani/frontend/static/controllers/iidx/settings.react.js index fd06ddc..4059ef0 100644 --- a/bemani/frontend/static/controllers/iidx/settings.react.js +++ b/bemani/frontend/static/controllers/iidx/settings.react.js @@ -389,7 +389,7 @@ var settings_view = React.createClass({ null } { this.state.theme_saved[this.state.version] ? - : + { "\u2713" } : null } @@ -429,7 +429,7 @@ var settings_view = React.createClass({ null } { this.state.menu_saved[this.state.version] ? - : + { "\u2713" } : null }