mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
7aabe2a26e
Restore POST /api/peers/{id}/restore removed in a9e217c, add signal tests
that managed mode queues pending_device_* while locked does not, and move
RustDesk enrollment controls to Settings with full approval (folder, groups,
tag picker) wired through the registrations flow.
422 lines
7.6 KiB
CSS
422 lines
7.6 KiB
CSS
/**
|
|
* BetterDesk Console - Registrations Page Styles
|
|
*/
|
|
|
|
.registrations-page {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Header */
|
|
.registrations-page .page-header {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.registrations-page .page-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.registrations-page .page-title h1 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.registrations-page .page-subtitle {
|
|
margin: 4px 0 0;
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Badge */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 24px;
|
|
height: 24px;
|
|
padding: 0 8px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
}
|
|
|
|
.badge-info {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.badge-warning {
|
|
background: var(--warning, #f59e0b);
|
|
color: #fff;
|
|
}
|
|
|
|
.badge-sidebar {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
border-radius: 10px;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
background: var(--primary);
|
|
color: #fff;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Filters */
|
|
.registrations-filters {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.registrations-filters .filter-group {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.registrations-filters .search-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 0 12px;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
max-width: 360px;
|
|
}
|
|
|
|
.registrations-filters .search-wrapper .material-icons {
|
|
color: var(--text-secondary);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.registrations-filters .search-wrapper .form-input {
|
|
border: none;
|
|
background: transparent;
|
|
padding: 8px 0;
|
|
flex: 1;
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
}
|
|
|
|
.filter-buttons {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.filter-btn {
|
|
padding: 6px 14px;
|
|
font-size: 0.8rem;
|
|
border-radius: 6px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.filter-btn:hover {
|
|
background: var(--bg-tertiary, var(--bg-hover));
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.filter-btn.active {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Table */
|
|
.registrations-table-wrapper {
|
|
overflow-x: auto;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.registrations-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.registrations-table th,
|
|
.registrations-table td {
|
|
padding: 10px 14px;
|
|
text-align: left;
|
|
font-size: 0.875rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.registrations-table th {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.registrations-table tbody tr:hover {
|
|
background: var(--bg-hover, rgba(99, 102, 241, 0.04));
|
|
}
|
|
|
|
.registrations-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Status badges */
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-badge.pending {
|
|
background: rgba(245, 158, 11, 0.15);
|
|
color: var(--warning, #f59e0b);
|
|
}
|
|
|
|
.status-badge.approved {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: var(--success, #22c55e);
|
|
}
|
|
|
|
.status-badge.rejected {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: var(--danger, #ef4444);
|
|
}
|
|
|
|
/* Action buttons */
|
|
.action-btn-group {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 10px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.action-btn .material-icons {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.action-btn.approve {
|
|
background: var(--success, #22c55e);
|
|
color: #fff;
|
|
}
|
|
|
|
.action-btn.reject {
|
|
background: var(--danger, #ef4444);
|
|
color: #fff;
|
|
}
|
|
|
|
.action-btn.delete {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Empty state */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 48px 24px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state .material-icons {
|
|
font-size: 48px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.empty-state p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.empty-row td {
|
|
border-bottom: none !important;
|
|
}
|
|
|
|
/* Device ID column */
|
|
.device-id-cell {
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* Time column */
|
|
.time-cell {
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-primary);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
max-width: 480px;
|
|
width: 100%;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-body textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 12px 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Platform icons */
|
|
.platform-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.platform-cell .material-icons {
|
|
font-size: 18px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Loading */
|
|
.loading-row td {
|
|
text-align: center;
|
|
padding: 32px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.enrollment-mode-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
margin-bottom: 16px;
|
|
border-radius: 8px;
|
|
background: var(--warning-bg, rgba(255, 193, 7, 0.12));
|
|
border: 1px solid var(--warning-border, rgba(255, 193, 7, 0.35));
|
|
color: var(--text-primary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.enrollment-mode-banner .material-icons {
|
|
font-size: 20px;
|
|
color: var(--warning-color, #b8860b);
|
|
}
|
|
|
|
.approve-tags-picker,
|
|
.approve-groups-picker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
max-height: 160px;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.approve-tags-picker .tag-filter-option,
|
|
.approve-groups-picker .tag-filter-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.approve-tags-selected {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.settings-enrollment-modes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.registrations-filters .filter-group {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.registrations-filters .search-wrapper {
|
|
max-width: none;
|
|
}
|
|
|
|
.filter-buttons {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|