Files
BetterDesk/web-nodejs/views/errors/403.ejs
T
UNITRONIX 0496b1dbc4 Add client API, sysinfo endpoints and Docker
Add RustDesk-compatible client API and telemetry support and introduce a single-container Docker build. New client_api_handlers.go implements /api/login, /api/login-options, /api/logout, /api/currentUser, /api/ab, /api/heartbeat, /api/sysinfo and /api/sysinfo_ver with TOTP flow and an in-memory TFA session store; auth middleware and Server registration updated accordingly. Database interface and SQLite/Postgres implementations gain UpdatePeerSysinfo (with tests), audit actions for sysinfo, and handleGetPeer now returns live_online/live_status. Also add Dockerfile, docker-compose.single.yml, supervisord entrypoint, UI fixes (QR color inversion, 403 error view), labels file, README updates, and other ancillary changes.

Co-Authored-By: MrBrodacz - Design <215021251+MrBrodacz2025@users.noreply.github.com>
Co-Authored-By: boruto79 <176351662+boruto79@users.noreply.github.com>
Co-Authored-By: marcosacramento <marcosacramento@gmail.com>
Co-Authored-By: Charles Olivier Savignac <1275666+sircharlo@users.noreply.github.com>
2026-03-06 01:08:10 +01:00

59 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="<%= lang || 'en' %>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>403 - Forbidden | <%= appName %></title>
<link rel="icon" type="image/svg+xml" href="/branding/favicon.svg">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/theme.css">
<style>
.error-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: var(--space-lg);
}
.error-container {
max-width: 400px;
}
.error-code {
font-size: 120px;
font-weight: 700;
color: var(--accent-orange);
line-height: 1;
margin-bottom: var(--space-md);
}
.error-title {
font-size: var(--font-size-2xl);
font-weight: 600;
margin-bottom: var(--space-sm);
}
.error-message {
color: var(--text-secondary);
margin-bottom: var(--space-xl);
}
.error-icon {
font-size: 64px;
color: var(--text-tertiary);
margin-bottom: var(--space-md);
}
</style>
</head>
<body>
<div class="error-page">
<div class="error-container">
<span class="material-icons error-icon">lock</span>
<div class="error-code">403</div>
<h1 class="error-title"><%= _('errors.forbidden_title') %></h1>
<p class="error-message"><%= _('errors.forbidden_message') %></p>
<a href="/" class="btn btn-primary">
<span class="material-icons">home</span>
<%= _('errors.go_home') %>
</a>
</div>
</div>
</body>
</html>