summaryrefslogtreecommitdiff
path: root/front
diff options
context:
space:
mode:
Diffstat (limited to 'front')
-rw-r--r--front/src/root.jsx6
-rw-r--r--front/src/routes/home.jsx5
-rw-r--r--front/src/routes/man_pages.jsx2
3 files changed, 6 insertions, 7 deletions
diff --git a/front/src/root.jsx b/front/src/root.jsx
index 3e9ea53..2b1e603 100644
--- a/front/src/root.jsx
+++ b/front/src/root.jsx
@@ -17,6 +17,9 @@ export const Root = () => {
</Link>
</div>
<div className="nav">
+ <Link className="link" to="/man-pages">
+ Man Pages
+ </Link>
{signedIn ? (
<>
<Link className="link" to="/home">
@@ -42,9 +45,6 @@ export const Root = () => {
</a>
</>
)}
- <Link className="link" to="/man-pages">
- Man Pages
- </Link>
</div>
</div>
<div className="content">
diff --git a/front/src/routes/home.jsx b/front/src/routes/home.jsx
index d4ba22b..05129a2 100644
--- a/front/src/routes/home.jsx
+++ b/front/src/routes/home.jsx
@@ -3,11 +3,10 @@ import { Link } from "react-router-dom";
import { useAuthContext } from "../context/auth_context";
-const generateSSHConfig = (username) => `
-Host chessh
+const generateSSHConfig = (username) => `Host chessh
Hostname ${process.env.REACT_APP_SSH_SERVER}
Port ${process.env.REACT_APP_SSH_PORT}
- User "${username}"
+ User ${username.includes(" ") ? '"' + username + '"' : username}"
PubkeyAuthentication yes
`;
diff --git a/front/src/routes/man_pages.jsx b/front/src/routes/man_pages.jsx
index 30324c8..2d988d8 100644
--- a/front/src/routes/man_pages.jsx
+++ b/front/src/routes/man_pages.jsx
@@ -56,7 +56,7 @@ export const ManPages = () => {
<ul>
<li>Ctrl + b / Escape to return to the main menu.</li>
<li>Ctrl + c / Ctrl + d to exit CheSSH at any point.</li>
- <li>Arrow keys / vim keybinds to move around the board.</li>
+ <li>Arrow keys / hjkl keybinds to move around the board.</li>
<li>
Select a piece with "enter", and move it to a square by pressing
"enter" again.