diff options
author | notoraptor <stevenbocco@gmail.com> | 2019-08-01 15:53:23 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-08-01 16:32:55 -0400 |
commit | 891fb62a77b9a86f2bc71cc02a82089412982b2f (patch) | |
tree | 7152ec4ef8186741695a921d6cc7bac78102b0dd /diplomacy/web/src/gui/pages/content_games.jsx | |
parent | 904ea5bcfab0ffe2b87d00fd0b938a8907c44842 (diff) |
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.
Diffstat (limited to 'diplomacy/web/src/gui/pages/content_games.jsx')
-rw-r--r-- | diplomacy/web/src/gui/pages/content_games.jsx | 5 |
1 files changed, 0 insertions, 5 deletions
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); }}/> ))}> |