mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 17:45:42 +00:00
45e5fda9d0
Adds a full Phase-52 RBAC implementation and multiple server/frontend fixes. Key changes: new auth/permissions.go with 28 granular permissions and DefaultRolePermissions, expanded 7-role hierarchy and helpers in auth/roles.go, JWT org context and GenerateOrgToken, requirePermission/requireOrgMembership middlewares (Go + Node.js), DB schema & adapter changes for role_permissions and is_server_admin, org role boundary checks and peer org scoping, and guards for last-admin demotion and self-demotion. Also: TCP EOF/connection-reset log filtering in signal/relay servers, improved startup banner port display, KEYS_PATH auto-detect warning, CSS hover/transition layout fixes, admin password race mitigation, ID-change ghost peer cleanup, added Tauri ACL schema files, and a new RBAC_PHASE52.md doc. Misc: numerous web-nodejs i18n, CSS, JS and route updates and an updated .github/copilot-instructions.md timestamp/summary.
201 lines
3.9 KiB
CSS
201 lines
3.9 KiB
CSS
/* BetterDesk Console - Reports Styles */
|
|
|
|
/* Report type grid */
|
|
.report-type-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 16px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.report-type-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
cursor: pointer;
|
|
transform: translateY(0);
|
|
transition: border-color 0.2s, transform 0.15s;
|
|
text-align: center;
|
|
}
|
|
|
|
.report-type-card:hover {
|
|
border-color: var(--accent-blue);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.report-type-card.selected {
|
|
border-color: var(--accent-blue);
|
|
background: rgba(88, 166, 255, 0.06);
|
|
}
|
|
|
|
.report-type-card .material-icons {
|
|
font-size: 36px;
|
|
color: var(--accent-blue);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.report-type-card h3 {
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.report-type-card p {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Report options */
|
|
.report-options {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.report-options h3 {
|
|
color: var(--text-primary);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Preview */
|
|
.report-preview {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.report-preview-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.report-preview-header h3 {
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.report-output {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
max-height: 500px;
|
|
overflow: auto;
|
|
font-family: 'Fira Mono', 'Consolas', monospace;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Saved report entries */
|
|
.report-name { font-weight: 500; color: var(--text-primary); }
|
|
|
|
/* responsive */
|
|
@media (max-width: 768px) {
|
|
.report-type-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
@media (max-width: 480px) {
|
|
.report-type-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* Human-readable report rendering */
|
|
.report-summary {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.report-stat {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
min-width: 140px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.report-stat-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.report-stat-value {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.report-section-title {
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin: 16px 0 8px 0;
|
|
padding-bottom: 4px;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.report-list {
|
|
list-style: disc;
|
|
padding-left: 20px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.report-list li { padding: 2px 0; }
|
|
|
|
.report-kv {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.report-kv-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.04));
|
|
}
|
|
|
|
.report-kv-key {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
min-width: 150px;
|
|
}
|
|
|
|
.report-kv-val {
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.raw-json-toggle {
|
|
margin-top: 16px;
|
|
border-top: 1px solid var(--border-primary);
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.raw-json-toggle summary {
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
user-select: none;
|
|
}
|
|
|
|
.raw-json-toggle pre {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|