servatrice/webclient
ebbit1q ebe2c494aa
remove the stop dump zone command from the protocol (#4326)
the stop dump zone command was implemented as a courtesy to other
players in order to take into account when they would stop looking at
unknown information

however, this can be abused, a malicious client can send this command
whenever they would like

cockatrice is not a physical tabletop nor does it aim to be, if you can
take a screenshot of your deck and then close the view, you are not
cheating as you have been given this information

in order to prevent anyone from abusing this we should remove the
command from the protocol, this means servers will ignore this message
and clients will get a little invalid command reply in their debug log

the extension id will remain reserved

shuffling your deck will always invalidate any card view looking at
those cards

if players wish to signal that they stopped looking at their deck for
whatever reason they should just use the chat instead, optionally using
one of the chat macros
2021-06-01 21:52:20 -04:00
..
public Webatrice P.O.C. (#3854) 2020-12-31 17:08:15 -05:00
src remove the stop dump zone command from the protocol (#4326) 2021-06-01 21:52:20 -04:00
.gitignore Webatrice P.O.C. (#3854) 2020-12-31 17:08:15 -05:00
copy_shared_files.ps1 Structure change (#4220) 2021-01-20 18:50:18 -05:00
copy_shared_files.sh Webatrice P.O.C. (#3854) 2020-12-31 17:08:15 -05:00
package-lock.json Webatrice: Nav Update (#4367) 2021-06-01 20:47:19 -04:00
package.json Webatrice: Nav Update (#4367) 2021-06-01 20:47:19 -04:00
README.md pass reset Small fixes (#4310) 2021-04-12 13:28:47 -04:00
tsconfig.json Webatrice P.O.C. (#3854) 2020-12-31 17:08:15 -05:00

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you cant go back!

If you arent satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.

You dont have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

To-Do List

  1. RefreshGuard modal
  • there is no browser support for displaying custom output to window.onbeforeunload
  • we should also display a custom modal explaining why they shouldnt refresh or navigate from the site
  • ideally, the custom popup can be synced with the alert, so when the alert is closed, the modal closes too
  1. Disable AutoScrollToBottom when the user has scrolled up
  • when the user scrolls back to bottom, it should renable
  • renable after a period of inactivity (3 minutes?)
  1. Figure out how to type components w/ RouteComponentProps
  • Component<RouteComponentProps>
  1. clear input onSubmit

  2. figure out how to reflect server status changes in the ui

  3. Account page

  4. Register/Reset Password forms

  5. Message User

  6. Main Nav scheme