1
0
mirror of synced 2025-01-18 22:24:04 +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 */ /** @jsx React.DOM */
var Add = React.createClass({ var Add = createReactClass({
render: function() { render: function() {
return ( return (
<Button <Button

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
/*** @jsx React.DOM */ /*** @jsx React.DOM */
var card_management = React.createClass({ var card_management = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
return { return {
cards: window.cards, 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 mergehandler = new MergeManager(function(evt) { return evt.id; }, MergeManager.MERGE_POLICY_DROP);
var audit_events = React.createClass({ var audit_events = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
return { return {
events: mergehandler.add(window.events), events: mergehandler.add(window.events),

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions); var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions); var pagenav = new History(valid_versions);
var profile_view = React.createClass({ var profile_view = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
var profiles = Object.keys(window.player); 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 chart_map = [0, 1, 2, 3, 4, 6, 7, 8, 9];
var HighScore = React.createClass({ var HighScore = createReactClass({
render: function() { render: function() {
if (!this.props.score) { if (!this.props.score) {
return null; return null;
@ -51,7 +51,7 @@ var HighScore = React.createClass({
}, },
}); });
var network_records = React.createClass({ var network_records = createReactClass({
sortRecords: function(records) { sortRecords: function(records) {
var sorted_records = {}; var sorted_records = {};

View File

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

View File

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

View File

@ -10,7 +10,7 @@ var option_names = {
'filter': 'Filter', 'filter': 'Filter',
}; };
var settings_view = React.createClass({ var settings_view = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
var profiles = Object.keys(window.player); 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 pagenav = new History(valid_charts);
var top_scores = React.createClass({ var top_scores = createReactClass({
sortTopScores: function(topscores) { sortTopScores: function(topscores) {
var newscores = [[], [], [], [], [], [], [], [], [], []]; var newscores = [[], [], [], [], [], [], [], [], [], []];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -59,7 +59,7 @@ var valid_qpro_options = [
'head', 'head',
]; ];
var settings_view = React.createClass({ var settings_view = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
var profiles = Object.keys(window.player); 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 pagenav = new History(valid_charts);
var top_scores = React.createClass({ var top_scores = createReactClass({
sortTopScores: function(topscores) { sortTopScores: function(topscores) {
var newscores = [[], [], [], [], [], []]; var newscores = [[], [], [], [], [], []];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions); var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions); var pagenav = new History(valid_versions);
var settings_view = React.createClass({ var settings_view = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
var profiles = Object.keys(window.player); 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 pagenav = new History(valid_charts);
var top_scores = React.createClass({ var top_scores = createReactClass({
sortTopScores: function(topscores) { sortTopScores: function(topscores) {
var newscores = [[], [], [], []]; var newscores = [[], [], [], []];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions); var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions); var pagenav = new History(valid_versions);
var settings_view = React.createClass({ var settings_view = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
var profiles = Object.keys(window.player); 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 pagenav = new History(valid_charts);
var top_scores = React.createClass({ var top_scores = createReactClass({
sortTopScores: function(topscores) { sortTopScores: function(topscores) {
var newscores = [[], [], [], [], []]; var newscores = [[], [], [], [], []];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,7 @@
var valid_versions = Object.keys(window.versions); var valid_versions = Object.keys(window.versions);
var pagenav = new History(valid_versions); var pagenav = new History(valid_versions);
var settings_view = React.createClass({ var settings_view = createReactClass({
getInitialState: function(props) { getInitialState: function(props) {
var profiles = Object.keys(window.player); 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 pagenav = new History(valid_charts);
var top_scores = React.createClass({ var top_scores = createReactClass({
sortTopScores: function(topscores) { sortTopScores: function(topscores) {
var newscores = [[], [], [], [], []]; 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 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.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='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='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='messages.js') }}"></script>
<script defer type="text/javascript" src="{{ url_for('static', filename='history.js') }}"></script> <script defer type="text/javascript" src="{{ url_for('static', filename='history.js') }}"></script>