feat: rebranded from vpn-router to linux-manager.
This commit is contained in:
1 parent
8efe21bfa6
commit
85a1ffa21f
238 files changed
+5010
-3761
No files matched your search
@@ -18,15 +18,15 @@ const THEMES: Record<'light' | 'dark', ITheme> = {
|
||||
const FONT = "Menlo, Monaco, Consolas, 'Droid Sans Mono', 'DejaVu Sans Mono', 'Courier New', monospace"
|
||||
|
||||
/**
|
||||
* A login shell on the router in an xterm.js terminal, as the signed-in user's console account; a user whose console
|
||||
* login is not on is told how root switches it on. The router gives a ticket without a sign-in while the user's last
|
||||
* A login shell on the server in an xterm.js terminal, as the signed-in user's console account; a user whose console
|
||||
* login is not on is told how root switches it on. The server gives a ticket without a sign-in while the user's last
|
||||
* use of a shell is within its web.shell_auth_timeout; otherwise the user signs in again with the password and the
|
||||
* code, or with one of its passkeys, which the browser unlocks with the device's PIN or biometrics. With the ticket, a
|
||||
* WebSocket to /api/shell carries the terminal: keystrokes and output as binary
|
||||
* messages, the window size as a text message {cols, rows}. When the router or the connection ends the shell, the
|
||||
* messages, the window size as a text message {cols, rows}. When the server or the connection ends the shell, the
|
||||
* terminal stays readable with the reason above it, and New shell asks for a new ticket.
|
||||
*
|
||||
* A text message {editor: "open", session, id, path} of the router, sent when vre in the shell names a file, opens the
|
||||
* A text message {editor: "open", session, id, path} of the server, sent when lme in the shell names a file, opens the
|
||||
* file in the editor (EditorPanel) and calls onOpened. editorShown shows the editor in place of the terminal, which
|
||||
* keeps running; onFiles is called with the number of open files, 0 once the last is closed or the shell ends.
|
||||
*/
|
||||
@@ -51,7 +51,7 @@ export default function ShellPanel(props: { editorShown: boolean; onFiles: (coun
|
||||
const codeProblem = !CODE_PATTERN.test(code) ? 'Six digits.' : ''
|
||||
const login = account?.console?.enabled && account.otp ? account.console : null
|
||||
|
||||
/** Asks the router for a ticket without signing in; the sign-in form shows when the router wants one. */
|
||||
/** Asks the server for a ticket without signing in; the sign-in form shows when the server wants one. */
|
||||
const reopen = useCallback(async () => {
|
||||
setBusy(true)
|
||||
setError(null)
|
||||
@@ -189,7 +189,7 @@ export default function ShellPanel(props: { editorShown: boolean; onFiles: (coun
|
||||
}
|
||||
}
|
||||
|
||||
/** Opens a shell with one of the user's passkeys, which the router asks the browser for. */
|
||||
/** Opens a shell with one of the user's passkeys, which the server asks the browser for. */
|
||||
async function openWithPasskey() {
|
||||
setBusy(true)
|
||||
setError(null)
|
||||
@@ -218,7 +218,7 @@ export default function ShellPanel(props: { editorShown: boolean; onFiles: (coun
|
||||
<Alert severity="info">
|
||||
{account.console?.enabled
|
||||
? 'The shell needs one-time passwords. Enrol an authenticator app on the Account page.'
|
||||
: `Console login is not on for ${account.name}. Root on the router switches it on: vpn-router-user console ${account.name} --posix, or --account LOCAL to use a local account.`}
|
||||
: `Console login is not on for ${account.name}. Root on the server switches it on: linux-manager-user console ${account.name} --posix, or --account LOCAL to use a local account.`}
|
||||
</Alert>
|
||||
)}
|
||||
{ticket === null && !account && error && <Alert severity="error" sx={{ whiteSpace: 'pre-line' }}>{error}</Alert>}
|
||||
@@ -228,7 +228,7 @@ export default function ShellPanel(props: { editorShown: boolean; onFiles: (coun
|
||||
<Stack sx={{ gap: 2 }}>
|
||||
<Typography variant="h6" component="h3">Open a shell</Typography>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
{`The shell runs on the router as ${login.local ? 'the local account' : 'your POSIX account'} ${login.account}. Sign in again to open it.`}
|
||||
{`The shell runs on the server as ${login.local ? 'the local account' : 'your POSIX account'} ${login.account}. Sign in again to open it.`}
|
||||
</Typography>
|
||||
{error && <Alert severity="error" sx={{ whiteSpace: 'pre-line' }}>{error}</Alert>}
|
||||
<TextField label="Password" type="password" value={password} autoFocus autoComplete="current-password" onChange={(event) => setPassword(event.target.value)} />
|
||||
|
||||
Reference in new issue
Block a user