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
@@ -1,5 +1,5 @@
|
||||
import { Chip } from '@mui/material'
|
||||
import { bytes } from './RouterPanel.tsx'
|
||||
import { bytes } from './ServerPanel.tsx'
|
||||
import type { Backup, BackupState } from './api.ts'
|
||||
|
||||
/** The colour of each result of a backup run. */
|
||||
@@ -14,7 +14,7 @@ const RESULT_COLORS: Record<string, 'success' | 'warning' | 'error' | 'info'> =
|
||||
/** The labels of the backup targets. */
|
||||
export const TARGET_LABELS: Record<string, string> = { local: 'Local folder', pbs: 'Proxmox Backup Server' }
|
||||
|
||||
/** A time of the router in the browser's format, or a dash. */
|
||||
/** A time of the server in the browser's format, or a dash. */
|
||||
export function when(time: string | null | undefined) {
|
||||
return time ? new Date(time).toLocaleString() : '-'
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export function BackupChip(props: { state: BackupState | null }) {
|
||||
: <Chip size="small" label="never" variant="outlined" />
|
||||
}
|
||||
|
||||
/** The schedule, the next run (as systemd shows it) and the last run of the router's backups, as rows of Pairs. */
|
||||
/** The schedule, the next run (as systemd shows it) and the last run of the server's backups, as rows of Pairs. */
|
||||
export function backupRows(backup: Backup): [string, string][] {
|
||||
const { settings, state } = backup
|
||||
const rows: [string, string][] = [
|
||||
|
||||
Reference in new issue
Block a user