From 593a631a564926b5b118805b8bea13a753e4757d Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 28 Jan 2023 22:56:10 -0700 Subject: Ensure board is flipped when starting a game as dark, move some constants to environment variables, minor frontend changes: --- front/src/routes/auth_successful.jsx | 10 ++-------- front/src/routes/demo.jsx | 1 - front/src/routes/home.jsx | 13 +++++++++++++ front/src/routes/keys.jsx | 2 +- front/src/routes/password.jsx | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) (limited to 'front/src/routes') diff --git a/front/src/routes/auth_successful.jsx b/front/src/routes/auth_successful.jsx index 7c66587..7a20eae 100644 --- a/front/src/routes/auth_successful.jsx +++ b/front/src/routes/auth_successful.jsx @@ -24,16 +24,10 @@ export const AuthSuccessful = () => { return ( <>

Hello there, {player?.username || ""}!

-
- If you have not already done so: - - Add a Public Key - -
-
+

You've successfully been authenticated.

- Go Home + Get Started
diff --git a/front/src/routes/demo.jsx b/front/src/routes/demo.jsx index b1a2f88..57d3ce4 100644 --- a/front/src/routes/demo.jsx +++ b/front/src/routes/demo.jsx @@ -6,7 +6,6 @@ import "asciinema-player/dist/bundle/asciinema-player.css"; const demoProps = { theme: "tango", - startAt: 12, autoPlay: true, }; diff --git a/front/src/routes/home.jsx b/front/src/routes/home.jsx index baccb5f..0660a72 100644 --- a/front/src/routes/home.jsx +++ b/front/src/routes/home.jsx @@ -49,6 +49,19 @@ export const Home = () => { codeBlock /> +
+
  • Finally, play chess!
  • +

    Ideally, keeping the following contols in mind:

    + +
    ); diff --git a/front/src/routes/keys.jsx b/front/src/routes/keys.jsx index 4dee1ce..5b50fa9 100644 --- a/front/src/routes/keys.jsx +++ b/front/src/routes/keys.jsx @@ -20,7 +20,7 @@ const KeyCard = ({ onDelete, props }) => { const deleteThisKey = () => { if ( window.confirm( - "Are you sure? This will close all your current ssh sessions." + "Are you sure? This will close all your currently opened ssh sessions." ) ) { fetch(`/api/keys/${id}`, { diff --git a/front/src/routes/password.jsx b/front/src/routes/password.jsx index 11fb775..4203f94 100644 --- a/front/src/routes/password.jsx +++ b/front/src/routes/password.jsx @@ -21,7 +21,7 @@ export const Password = () => { const deletePassword = () => { if ( window.confirm( - "Are you sure? This will close all your current ssh sessions." + "Are you sure? This will close all your currently opened ssh sessions." ) ) { fetch(`/api/player/token/password`, { -- cgit v1.2.3-70-g09d2