From 891fb62a77b9a86f2bc71cc02a82089412982b2f Mon Sep 17 00:00:00 2001 From: notoraptor Date: Thu, 1 Aug 2019 15:53:23 -0400 Subject: Refactored SVG map into a React component - Create link to diplomacy map folder into web/src/diplomacy/maps - Remove old web/src/gui/map folder. - [web] Handle click only on current map. - [web/game] Remove useless `wait` state. - Remove unused nodejs modules. - [web] Use queue to handle game notifications in sequential order. - Make all calls to setState() asynchronous in Page and ContentGame components. - Make sure notifications are handled in the order in which they come. --- diplomacy/web/src/gui/pages/content_games.jsx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'diplomacy/web/src/gui/pages/content_games.jsx') diff --git a/diplomacy/web/src/gui/pages/content_games.jsx b/diplomacy/web/src/gui/pages/content_games.jsx index 5250f03..ef79b58 100644 --- a/diplomacy/web/src/gui/pages/content_games.jsx +++ b/diplomacy/web/src/gui/pages/content_games.jsx @@ -26,7 +26,6 @@ import {ContentGame} from "./content_game"; import PropTypes from 'prop-types'; import {Tab} from "../components/tab"; import {GameCreationWizard} from "../wizards/gameCreation/gameCreationWizard"; -import {Diplog} from "../../diplomacy/utils/diplog"; const TABLE_LOCAL_GAMES = { game_id: ['Game ID', 0], @@ -109,10 +108,6 @@ export class ContentGames extends React.Component { username={this.getPage().channel.username} onSubmit={(form) => { onClose(); - Diplog.info(`Creating game:`); - for (let entry of Object.entries(form)) { - Diplog.info(`${entry[0]}: ${entry[1] ? entry[1].toString() : entry[1]}`); - } this.onCreate(form); }}/> ))}> -- cgit v1.2.3