From 5c71a0f73717bffefb5e23a9e100adb62fc54a61 Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Sun, 7 Jul 2019 09:23:59 -0400 Subject: Updated the web interface to have 3 tabs - Results / Messages / Current - Updated dependencies in package-lock.json - Set default homepage to "." so that built pages are relative to "index.html". - Add module "helmet" to handle page title. - Simplified page loading (replace static function builder with direct call to a method with component as argument). - Move function loadGameFromDisk in a separate file. - Use React context to access page object. - Add a new React component "Navigation" and simplify page rendering. - Add ability to choose power for any kind of loaded game. In phase history: - Show messages from all past and currently displayed phase. - Display messages from past phase with gray background. - Show messages per protagonist in tabs. - Show message phase in message header - Display message wide (header left, body right). - Display short names for powers in message tabs header. - Add warn function to page component. - Messages from previous phase are displayed with gray color text. - Game registration password input is displayed only if required - On games page: - sorted by descending timestamp created. - In table, game ID is displayed with human readable created date. - Prevent messages from displaying twice. - Re-add checkbox "show orders" to display arrow orders on past maps. - Handle HTML break-lines
and remove all other HTML tags when displaying messages. - Use latest phase as current game phase when loading a game from disk. --- diplomacy/web/package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'diplomacy/web/package.json') diff --git a/diplomacy/web/package.json b/diplomacy/web/package.json index bc6ab38..241632c 100644 --- a/diplomacy/web/package.json +++ b/diplomacy/web/package.json @@ -1,6 +1,7 @@ { "name": "web", "version": "0.1.0", + "homepage": ".", "private": true, "dependencies": { "@githubprimer/octicons-react": "^8.5.0", @@ -11,6 +12,7 @@ "prop-types": "^15.7.2", "react": "^16.8.6", "react-dom": "^16.8.6", + "react-helmet": "^5.2.1", "react-inlinesvg": "^0.8.4", "react-scripts": "^3.0.1", "react-scrollchor": "^6.0.0", -- cgit v1.2.3