Commit Graph

556 Commits

Author SHA1 Message Date
Andy Janata f7378e0d42 Show the /whois result in the window it was typed in. 2018-03-06 00:30:04 -08:00
Andy Janata e1578532e3 Add a /whois command.
Cleaned up some synchronization around ConnectedUsers.users while I was in there. The list itself wasn't synchronized, which could have been a slight problem.
2018-03-06 00:15:05 -08:00
Andy Janata 1fb621e175 Fix "Make a haiku." draw and pick values.
Same issue as the other card.
2018-03-05 13:48:34 -08:00
Andy Janata feed54d3e8 Fix an oddly-formatted black card's pick value.
The black card "What are two cards in your hand that you want to get rid of?" obviously wants you to play 2 cards, but it doesn't have any blanks in it, so the automatic card importer had no idea that it wants you to play two cards.
2018-03-04 11:31:30 -08:00
Andy Janata 7a24c652ac Add ID codes for positive user identification, and minor fixups.
Users can specify an identification code when they connect (8-100 characters), only if they are using HTTPS. This code is combined with their nickname and a server-side secret, hashed with SHA-256, and condensed down to 64 bits by XORing every 8th byte with each other, and finally converted to base64 (with the trailing = removed). This code is displayed in a tooltip when hovering over the user's chat (TODO: mobile way to view it).

Sigils have been added to be displayed before the user's name in the chat. Admins get @, users with an ID code get +, and normal users get nothing. The IS_ADMIN field is now deprecated, as this can be determined from the user's sigil. It will be removed eventually, but is still being included in events even though the official client should not be using it anymore.

Kicks and bans are now always displayed to all users, even if the server isn't transmitting quit events normally.
2018-03-02 17:30:59 -08:00
Andy Janata dc31b1f2ce Fix not focusing the nickname box on page load. 2018-03-02 14:28:28 -08:00
Andy Janata cdd38465fa HTML cleanup.
* Fix not being able to scroll the index page. Oops. Cleaned up how that was managed.
* Clean up things in changelog and known issues and future features. Some of it has been done for years, oops.
* Make the label for the join button for passworded games word-wrap.
2018-03-02 14:18:46 -08:00
Andy Janata cb0f2689c6 Let global chat enablement be configured via the properties file. Can be adjusted on the fly, though clients are not notified of the change (which doesn't affect the client's operation anyway). 2018-02-28 11:19:34 -08:00
Andy Janata e2960eef7d make lastpass also ignore the chat entry area 2018-02-27 17:50:56 -08:00
Andy Janata 4b75185629 * Add stylesheet to privacy and changelog pages.
* Update changelog on index and game page.
* Add tweet box to index and game page.
2018-02-27 16:30:59 -08:00
Andy Janata 216ff638bf Sort full games to the end of the game list. Fixes #157. 2018-02-27 16:03:09 -08:00
Andy Janata ce7e9da13c Revised new card database dump. Addresses cards with the same text but different formatting. 2018-02-27 15:14:00 -08:00
Andy Janata d143791321 * Fix some cases of not all decks being listed because the javascript code assumed that duplicate weights would never occur.
* Re-enable view cards page.
2018-02-27 14:05:57 -08:00
Andy Janata a94ba4a31c Fix default value for idle time multiplier in GameOptions so the dropdown actually has something selected. 2018-02-25 22:12:17 -08:00
Andy Janata b80f12e8d1 Update cards with official CAH cards through Q3 2017 from data provided by CAH. See also pyx-importer project. 2018-02-25 22:04:33 -08:00
Andy Janata adab3b7001 Add card dealt metrics. 2018-02-25 22:01:21 -08:00
Andy Janata 89a4ceeeef * Change card set sort order from 'weight, id' to 'weight, name'.
* Add number of black and white cards to the list on the card set editor page.
2018-02-21 16:49:38 -08:00
Andy Janata 91db059995 Use C3P0 for Hibernate connection pooling. This fixes the issue where everything breaks if Postgres restarts. 2018-02-15 16:27:53 -08:00
Andy Janata 88f58fb0fe Update README with correct command to run via jetty. Fixes #163. 2018-02-15 14:06:47 -08:00
Andy Janata 5e60e106f4 Handle null HTTP headers for language and user agent 2017-08-13 13:09:20 -07:00
Andy Janata 17ac4078d0 Disable global chat except for admins. Add release notes. 2017-08-13 12:17:42 -07:00
Andy Janata 9679d0f330 add watermark to card information sent to metrics 2017-04-14 22:23:05 -07:00
Andy Janata b2c27cd5cc add privacy page 2017-03-05 12:07:49 -08:00
Andy Janata 942903e60c sasl support for kafka 2017-03-04 15:43:00 -08:00
Andy Janata 73c41cc59f fix some cleanup issues when unable to connect to kafka 2017-03-04 14:13:51 -08:00
Andy Janata 5e6791e071 kafka tls 2017-03-04 13:55:41 -08:00
Andy Janata 5f18168388 configure logging before injector creation so injected constructors can log, and do not bother re-loading pyx.properties immediately after creating the injector which already does so 2017-02-26 22:34:06 -08:00
Andy Janata 23ce041bda implement kafka metrics without tls or authentication 2017-02-26 22:27:56 -08:00
Andy Janata a38dc53a77 fix some hibernate deprecation warnings 2017-02-26 22:27:03 -08:00
Andy Janata a67c721427 fix some warnings 2017-02-26 22:13:18 -08:00
Andy Janata 1e09b55190 java 8 2017-02-26 18:17:32 -08:00
Andy Janata a0d21cd2fd make metrics methods agree in tense 2017-02-23 22:36:58 -08:00
Andy Janata 45690c1914 Add user client information to user metrics info (language, device class, name).
Add metrics logging for server start up, user disconnect, and card judging events.
2017-02-23 22:32:22 -08:00
Andy Janata e1bc2c4176 document unused build.properties value 2017-02-20 21:46:52 -08:00
Andy Janata 72b4cd9b8b Add persistent IDs to users, stored via cookie (opt-out availabled).
Fix removing cookies.
Add per-server instance unique IDs for games and users, which will not collide between servers or when servers restart.
Add GeoIP capability.
Add beginning of framework for logging card plays.
2017-02-20 21:35:44 -08:00
Andy Janata b5fef60a7e use constant value in error message 2017-02-20 16:50:01 -08:00
Andy Janata 32aac1bb15 update admin ip addresses, make chat spam filter more aggressive 2017-02-20 16:47:55 -08:00
Andy Janata f3f9dbe265 escape the set name and description too 2017-02-14 20:27:01 -08:00
Andy Janata d919c07a89 escape card text from cardcast. fixes xss issues. 2017-02-14 20:21:47 -08:00
Andy Janata 15aced170f add instructions on how to avoid buildnumber plugin errors to readme 2017-02-14 20:18:54 -08:00
Andy Janata a9d3fefd03 Merge pull request #148 from SSederberg/patch-1
Make the README file have the correct information.
2017-02-14 20:00:56 -08:00
Andy Janata 141876f0c7 Merge pull request #150 from rootatdebian/master
Fix typo of "hard" to "hand"
2017-02-14 20:00:19 -08:00
Andy Janata d206ed8384 another warning turned on in eclipse 2017-02-14 19:51:44 -08:00
Andy Janata a390743735 add git commit id to pyx.properties 2017-02-14 19:51:19 -08:00
Andy Janata eb66ccd054 Remove the CORS filter.
I've spent multiple hours trying to figure out why it isn't actually working, and at this point I'm giving up on it. If you want an alternate web UI, send pull requests or run your own servers. My servers will only officially support my UI, though you are free to use other UIs if you can make them work with them (but I provide no guarantees that updates won't break things).
2017-02-14 19:19:49 -08:00
rootatdebian 9a776fb801 Fix typo of "hard" to "hand" 2016-09-10 16:14:12 -04:00
Spencer S 1e23f40ef9 Update and rename README to README.md
The README file needs an update. As Eclipse will no longer compile the WAR correctly. Using Maven will compile PYX correctly.
2016-04-13 10:01:41 -05:00
Andy Janata a94b99fb58 Turn the CORS filter off since it isn't working for me and I don't have time to investigate right now. 2016-04-03 22:27:43 -07:00
Andy Janata 281ce6d8c0 Update card database dump. 2016-04-03 21:58:20 -07:00
Andy Janata 50d48e8b8d Merge pull request #146 from allquixotic/adjustable-timers
Feature: Adjustable timer multiplier instead of idle timer checkbox.
2016-04-03 21:38:23 -07:00