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
@@ -5,19 +5,19 @@ import { Alert, Box, Button, Table, TableBody, TableCell, TableHead, TablePagina
|
||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||
import BackupDialog from './BackupDialog.tsx'
|
||||
import { BackupChip, TARGET_LABELS, backupRows, when } from './BackupSummary.tsx'
|
||||
import { Pairs, Section, bytes } from './RouterPanel.tsx'
|
||||
import { Pairs, Section, bytes } from './ServerPanel.tsx'
|
||||
import SearchField, { matches } from './SearchField.tsx'
|
||||
import Toolbar from './Toolbar.tsx'
|
||||
import { ApiError, BACKUP_KEEPS, BACKUP_SCHEDULES, BACKUP_SETTINGS_SHAPE, BACKUP_SHAPE, STARTED_SHAPE, request, type Backup } from './api.ts'
|
||||
|
||||
/** The note shown after a change, which the router applies when vpn-router-setup has run again. */
|
||||
const APPLIED = 'The router applies the change in the background.'
|
||||
/** The note shown after a change, which the server applies when linux-manager-setup has run again. */
|
||||
const APPLIED = 'The server applies the change in the background.'
|
||||
|
||||
/** Seconds between reads while a backup runs or is starting. */
|
||||
const WATCH_SECONDS = 3
|
||||
|
||||
/**
|
||||
* The router's backups: the settings, the last run and the local archives, searched by name and time and shown a page at
|
||||
* The server's backups: the settings, the last run and the local archives, searched by name and time and shown a page at
|
||||
* a time; edit the settings and start a backup now.
|
||||
* While a backup runs, or after Run now until it has ended, the tab reads every WATCH_SECONDS.
|
||||
*/
|
||||
@@ -89,7 +89,7 @@ export default function BackupPanel() {
|
||||
|
||||
return (
|
||||
<Box component="section">
|
||||
<Toolbar description="Backups of the router's configuration, keys, users and metrics.">
|
||||
<Toolbar description="Backups of the server's configuration, keys, users and metrics.">
|
||||
<Button variant="contained" startIcon={<Edit />} disabled={busy || backup === null} onClick={() => setEditing(true)}>
|
||||
Edit
|
||||
</Button>
|
||||
@@ -105,12 +105,12 @@ export default function BackupPanel() {
|
||||
{note && <Alert severity="info" sx={{ mb: 2 }} onClose={() => setNote(null)}>{note}</Alert>}
|
||||
{backup && settings && !local && !backup.client && (
|
||||
<Alert severity="warning" sx={{ mb: 2 }}>
|
||||
proxmox-backup-client is not installed on the router; install proxmox-backup-client-static from Proxmox's client repository.
|
||||
proxmox-backup-client is not installed on the server; install proxmox-backup-client-static from Proxmox's client repository.
|
||||
</Alert>
|
||||
)}
|
||||
{backup && settings && local && settings.rclone_remote && !(backup.rclone.installed && backup.rclone.config) && (
|
||||
<Alert severity="warning" sx={{ mb: 2 }}>
|
||||
{backup.rclone.installed ? 'The router has no /etc/vpn-router/rclone.conf.' : 'rclone is not installed on the router.'} The cloud copy fails until it has.
|
||||
{backup.rclone.installed ? 'The server has no /etc/linux-manager/rclone.conf.' : 'rclone is not installed on the server.'} The cloud copy fails until it has.
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user