1
0
mirror of synced 2025-01-18 14:14:03 +01:00

Remove deprecated usage of "React.createClass" in preparation for updating to React 16.

This commit is contained in:
Jennifer Taylor 2022-10-08 18:37:38 +00:00
parent c4d5a6032a
commit e27c99baa2
92 changed files with 112 additions and 110 deletions

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Add = React.createClass({
var Add = createReactClass({
render: function() {
return (
<Button

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Button = React.createClass({
var Button = createReactClass({
render: function() {
return (
<button

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Card = React.createClass({
var Card = createReactClass({
render: function() {
return (
<div className="card">{

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Graph = React.createClass({
var Graph = createReactClass({
componentDidMount: function() {
var config = {
type: this.props.type,
@ -44,7 +44,7 @@ var Graph = React.createClass({
});
var LineGraph = React.createClass({
var LineGraph = createReactClass({
render: function() {
return (
@ -59,7 +59,7 @@ var LineGraph = React.createClass({
},
});
var RadarGraph = React.createClass({
var RadarGraph = createReactClass({
render: function() {
return (

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Checkbox = React.createClass({
var Checkbox = createReactClass({
render: function() {
return (
<span className={this.props.className} onClick={this.props.onClick}>

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Delete = React.createClass({
var Delete = createReactClass({
render: function() {
return (
<Button

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Edit = React.createClass({
var Edit = createReactClass({
render: function() {
return (
<Button

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var UnknownEvent = React.createClass({
var UnknownEvent = createReactClass({
render: function() {
return (
<tr key={event.id}>
@ -15,7 +15,7 @@ var UnknownEvent = React.createClass({
},
});
var ExceptionEvent = React.createClass({
var ExceptionEvent = createReactClass({
render: function() {
var event = this.props.event;
var location = 'Unknown Service';
@ -77,7 +77,7 @@ var ExceptionEvent = React.createClass({
},
});
var UnhandledPacketEvent = React.createClass({
var UnhandledPacketEvent = createReactClass({
render: function() {
var event = this.props.event;
return (
@ -96,7 +96,7 @@ var UnhandledPacketEvent = React.createClass({
},
});
var UnauthorizedClientEvent = React.createClass({
var UnauthorizedClientEvent = createReactClass({
render: function() {
var event = this.props.event;
return (
@ -125,7 +125,7 @@ var UnauthorizedClientEvent = React.createClass({
},
});
var PCBEvent = React.createClass({
var PCBEvent = createReactClass({
render: function() {
var event = this.props.event;
return (
@ -162,7 +162,7 @@ var PCBEvent = React.createClass({
},
});
var PASELITransactionEvent = React.createClass({
var PASELITransactionEvent = createReactClass({
render: function() {
var event = this.props.event;
var username = null;
@ -228,7 +228,7 @@ var PASELITransactionEvent = React.createClass({
},
});
var JubeatLeagueCourseEvent = React.createClass({
var JubeatLeagueCourseEvent = createReactClass({
render: function() {
var event = this.props.event;
var game = this.props.versions[event.data.version];
@ -256,7 +256,7 @@ var JubeatLeagueCourseEvent = React.createClass({
},
});
var JubeatFCChallengeEvent = React.createClass({
var JubeatFCChallengeEvent = createReactClass({
render: function() {
var event = this.props.event;
var game = this.props.versions[event.data.version];
@ -290,7 +290,7 @@ var JubeatFCChallengeEvent = React.createClass({
},
});
var JubeatRandomCourseEvent = React.createClass({
var JubeatRandomCourseEvent = createReactClass({
render: function() {
var event = this.props.event;
var game = this.props.versions[event.data.version];
@ -320,7 +320,7 @@ var JubeatRandomCourseEvent = React.createClass({
},
});
var IIDXDailyChartsEvent = React.createClass({
var IIDXDailyChartsEvent = createReactClass({
render: function() {
var event = this.props.event;
var game = this.props.versions[event.data.version];
@ -348,7 +348,7 @@ var IIDXDailyChartsEvent = React.createClass({
},
});
var PopnMusicCourseEvent = React.createClass({
var PopnMusicCourseEvent = createReactClass({
render: function() {
var event = this.props.event;
var game = this.props.versions[event.data.version];
@ -372,7 +372,7 @@ var PopnMusicCourseEvent = React.createClass({
},
});
var DDRProfilePurge = React.createClass({
var DDRProfilePurge = createReactClass({
render: function() {
var event = this.props.event;
var username = null;

View File

@ -4,7 +4,7 @@ function makeGameSettingName(game_settings) {
return game_settings.game + '-' + game_settings.version;
}
var GameSettings = React.createClass({
var GameSettings = createReactClass({
getInitialState: function() {
var valid_settings = this.props.game_settings.map(function(setting) {
return makeGameSettingName(setting);

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var LabelledSection = React.createClass({
var LabelledSection = createReactClass({
render: function() {
var classname = "labelledsection"
if (this.props.vertical) {

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var LongMessage = React.createClass({
var LongMessage = createReactClass({
getInitialState: function(props) {
return {
expanded: false,

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Nav = React.createClass({
var Nav = createReactClass({
render: function() {
var cls = 'nav';
if (this.props.active) {

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Next = React.createClass({
var Next = createReactClass({
render: function() {
return (
<Nav

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Prev = React.createClass({
var Prev = createReactClass({
render: function() {
return (
<Nav

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Rival = React.createClass({
var Rival = createReactClass({
render: function() {
if (this.props.player.remote) {
return <span>{ this.props.player.name }</span>;

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var SelectArcade = React.createClass({
var SelectArcade = createReactClass({
render: function() {
return (
<select

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var SelectInt = React.createClass({
var SelectInt = createReactClass({
__renderChoices: function() {
if (this.props.choices instanceof Array) {
// Given to us as an array, the index of the value is the selected value

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var SelectUser = React.createClass({
var SelectUser = createReactClass({
render: function() {
return (
<select

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Slider = React.createClass({
var Slider = createReactClass({
render: function() {
return (
<div

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Table = React.createClass({
var Table = createReactClass({
getInitialState: function(props) {
var sortCol = -1;
var sortDir = -1;

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Timestamp = React.createClass({
var Timestamp = createReactClass({
render: function() {
if (this.props.timestamp <= 0) {
return <div className="timestamp">N/A</div>;

View File

@ -1,6 +1,6 @@
/** @jsx React.DOM */
var Tip = React.createClass({
var Tip = createReactClass({
render: function() {
return (
<div className="tooltip">

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var account_management = React.createClass({
var account_management = createReactClass({
getInitialState: function(props) {
return {
email: window.email,

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var card_management = React.createClass({
var card_management = createReactClass({
getInitialState: function(props) {
return {
cards: window.cards,

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var api_management = React.createClass({
var api_management = createReactClass({
getInitialState: function(props) {
var info = this.scheduleServerInfo(window.servers);
return {

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var card_management = React.createClass({
var card_management = createReactClass({
getInitialState: function(props) {
return {
new_arcade: {

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var card_management = React.createClass({
var card_management = createReactClass({
getInitialState: function(props) {
return {
cards: window.cards,

View File

@ -30,7 +30,7 @@ var event_names = {
var mergehandler = new MergeManager(function(evt) { return evt.id; }, MergeManager.MERGE_POLICY_DROP);
var audit_events = React.createClass({
var audit_events = createReactClass({
getInitialState: function(props) {
return {
events: mergehandler.add(window.events),

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var gamesettings = React.createClass({
var gamesettings = createReactClass({
render: function() {
return (
<div>

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var machine_management = React.createClass({
var machine_management = createReactClass({
getInitialState: function(props) {
return {
machines: window.machines,

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var news_management = React.createClass({
var news_management = createReactClass({
getInitialState: function(props) {
return {
news: window.news,

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var user_management = React.createClass({
var user_management = createReactClass({
getInitialState: function(props) {
var credits = {};
Object.keys(window.arcades).map(function(arcadeid) {

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var card_management = React.createClass({
var card_management = createReactClass({
getInitialState: function(props) {
return {
users: window.users,

View File

@ -8,7 +8,7 @@ function count_pcbids(machines) {
return count;
}
var arcade_management = React.createClass({
var arcade_management = createReactClass({
getInitialState: function(props) {
var credits = {};
Object.keys(window.users).map(function(userid) {

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var settings_view = React.createClass({
var settings_view = createReactClass({
sanitizeName: function(name) {
if (name == 'なし') {

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -20,7 +20,7 @@ var sort_names = {
};
var chart_map = [0, 1, 2, 3, 4, 6, 7, 8, 9];
var HighScore = React.createClass({
var HighScore = createReactClass({
render: function() {
if (!this.props.score) {
return null;
@ -51,7 +51,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.rivals);
var pagenav = new History(valid_versions);
var rivals_view = React.createClass({
var rivals_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.rivals);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -10,7 +10,7 @@ var option_names = {
'filter': 'Filter',
};
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -6,7 +6,7 @@ var valid_charts = ['SP Beginner', 'SP Basic', 'SP Difficult', 'SP Expert', 'SP
});
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], [], [], [], [], [], [], []];

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var home = React.createClass({
var home = createReactClass({
getInitialState: function(props) {
return {
news: window.news,

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -19,7 +19,7 @@ var sort_names = {
'clear': 'Clear Lamp',
};
var HighScore = React.createClass({
var HighScore = createReactClass({
render: function() {
if (!this.props.score) {
return null;
@ -66,7 +66,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.rivals);
var pagenav = new History(valid_versions);
var rivals_view = React.createClass({
var rivals_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.rivals);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -59,7 +59,7 @@ var valid_qpro_options = [
'head',
];
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -5,7 +5,7 @@ var valid_charts = ['SPN', 'SPH', 'SPA', 'DPN', 'DPH', 'DPA'].filter(function(va
});
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], [], [], []];

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var jubility_view = React.createClass({
var jubility_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -19,7 +19,7 @@ var sort_names = {
'clear': 'Clear Medal',
};
var HighScore = React.createClass({
var HighScore = createReactClass({
render: function() {
if (!this.props.score) {
return null;
@ -69,7 +69,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.rivals);
var pagenav = new History(valid_versions);
var rivals_view = React.createClass({
var rivals_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.rivals);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -19,7 +19,7 @@ var emblem_option_names = {
'speech_bubble': 'Speech Bubble',
}
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -5,7 +5,7 @@ var valid_charts = window.new_rating ?
['Basic', 'Advanced', 'Extreme'];
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], [], [], []];

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -22,7 +22,7 @@ var sort_names = {
'clear': 'Clear Type',
};
var HighScore = React.createClass({
var HighScore = createReactClass({
render: function() {
if (!this.props.score) {
return null;
@ -64,7 +64,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -10,7 +10,7 @@ var chart_names = {
};
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], [], []];

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -17,7 +17,7 @@ var sort_names = {
'clear': 'Clear Medal',
};
var HighScore = React.createClass({
var HighScore = createReactClass({
render: function() {
if (!this.props.score) {
return null;
@ -59,7 +59,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.rivals);
var pagenav = new History(valid_versions);
var rivals_view = React.createClass({
var rivals_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.rivals);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -5,7 +5,7 @@ var valid_charts = ['Easy', 'Normal', 'Hyper', 'EX'].filter(function(val, index)
});
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], []];

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -19,7 +19,7 @@ var sort_names = {
'clear': 'Clear Type',
};
var HighScore = React.createClass({
var HighScore = createReactClass({
renderGrade: function(score) {
if (score.achievement_rate < 6000) {
@ -77,7 +77,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.rivals);
var pagenav = new History(valid_versions);
var rivals_view = React.createClass({
var rivals_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.rivals);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -5,7 +5,7 @@ var valid_charts = ['Basic', 'Medium', 'Hard', 'Special'].filter(function(val, i
});
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], [], []];

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var all_players = React.createClass({
var all_players = createReactClass({
getInitialState: function(props) {
return {

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var profile_view = React.createClass({
var profile_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -17,7 +17,7 @@ var sort_names = {
'clear': 'Clear Type',
};
var HighScore = React.createClass({
var HighScore = createReactClass({
render: function() {
if (!this.props.score) {
return null;
@ -57,7 +57,7 @@ var HighScore = React.createClass({
},
});
var network_records = React.createClass({
var network_records = createReactClass({
sortRecords: function(records) {
var sorted_records = {};

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.rivals);
var pagenav = new History(valid_versions);
var rivals_view = React.createClass({
var rivals_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.rivals);

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */
var network_scores = React.createClass({
var network_scores = createReactClass({
getInitialState: function(props) {
return {
songs: window.songs,

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions);
var settings_view = React.createClass({
var settings_view = createReactClass({
getInitialState: function(props) {
var profiles = Object.keys(window.player);

View File

@ -5,7 +5,7 @@ var valid_charts = ['Novice', 'Advanced', 'Exhaust', 'Infinite', 'Maximum'].filt
});
var pagenav = new History(valid_charts);
var top_scores = React.createClass({
var top_scores = createReactClass({
sortTopScores: function(topscores) {
var newscores = [[], [], [], [], []];

File diff suppressed because one or more lines are too long

View File

@ -19,6 +19,7 @@
<script type="text/javascript" src="{{ url_for('static', filename='tinynav.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='react.min.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='react-dom.min.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='create-react-class.min.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='ajax.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='messages.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='history.js') }}"></script>