mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
de913a23c2
- Added server_user_id column to org_users table (SQLite + PostgreSQL) - Added 5 new Go API endpoints for user-org linking - Added Node.js proxy routes for linking operations - Added two-tab modal in Organization Detail page (Create New / Add Existing) - Added Organizations management modal in Users page - Added i18n keys in EN/PL/ZH
404 lines
7.6 KiB
CSS
404 lines
7.6 KiB
CSS
/**
|
|
* BetterDesk Console - Users Page Styles
|
|
*/
|
|
|
|
.users-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: var(--space-lg);
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.users-header .page-title h1 {
|
|
margin: 0 0 var(--space-xs) 0;
|
|
}
|
|
|
|
.users-header .subtitle {
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Security Tips Card */
|
|
.security-tips-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.security-tips-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.security-tips-header .material-icons {
|
|
color: var(--accent-green);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.security-tips-header h3 {
|
|
margin: 0;
|
|
font-size: var(--font-size-lg);
|
|
}
|
|
|
|
.security-tips-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.security-tips-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.security-tips-list li .material-icons {
|
|
color: var(--accent-green);
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Users Table */
|
|
.users-table-container {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.users-table {
|
|
width: 100%;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--accent-blue-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.user-avatar .material-icons {
|
|
color: var(--accent-blue);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.user-username {
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
/* Role Badge */
|
|
.role-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 12px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.role-badge.admin {
|
|
background: var(--accent-purple-muted);
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.role-badge.super_admin {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.role-badge.server_admin {
|
|
background: rgba(14, 165, 233, 0.15);
|
|
color: #0ea5e9;
|
|
}
|
|
|
|
.role-badge.global_admin {
|
|
background: rgba(168, 85, 247, 0.15);
|
|
color: #a855f7;
|
|
}
|
|
|
|
.role-badge.operator {
|
|
background: var(--accent-orange-muted, rgba(249, 115, 22, 0.15));
|
|
color: var(--accent-orange, #f97316);
|
|
}
|
|
|
|
.role-badge.viewer {
|
|
background: var(--accent-blue-muted);
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.role-badge.pro {
|
|
background: rgba(234, 179, 8, 0.15);
|
|
color: #eab308;
|
|
}
|
|
|
|
/* User Actions */
|
|
.user-actions {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.user-actions .action-btn {
|
|
padding: var(--space-xs);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: all 0.15s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.user-actions .action-btn:hover {
|
|
color: var(--text-primary, #e6edf3);
|
|
background: var(--bg-tertiary, #21262d);
|
|
}
|
|
|
|
.user-actions .action-btn.danger:hover {
|
|
color: var(--accent-red, #f85149);
|
|
background: var(--accent-red-muted, rgba(248, 81, 73, 0.1));
|
|
}
|
|
|
|
/* Empty State */
|
|
.users-empty {
|
|
text-align: center;
|
|
padding: var(--space-3xl);
|
|
}
|
|
|
|
.users-empty-icon {
|
|
font-size: 64px;
|
|
color: var(--text-tertiary);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.users-empty-title {
|
|
margin: 0 0 var(--space-sm) 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.users-empty-text {
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* User Form */
|
|
.user-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.user-form .form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.user-form label {
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-form .form-hint {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.user-form .form-input.readonly {
|
|
background: var(--bg-tertiary);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Password Input */
|
|
.password-input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
}
|
|
|
|
.password-input-wrapper .form-input {
|
|
flex: 1;
|
|
padding-right: 44px;
|
|
}
|
|
|
|
.password-input-wrapper .toggle-password {
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 36px;
|
|
height: 36px;
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
color: var(--text-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.password-input-wrapper .toggle-password:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Password Strength */
|
|
.password-strength {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-height: 20px;
|
|
}
|
|
|
|
.strength-bar {
|
|
flex: 1;
|
|
height: 4px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-full);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.strength-fill {
|
|
height: 100%;
|
|
border-radius: var(--radius-full);
|
|
transition: width 0.3s ease, background 0.3s ease;
|
|
}
|
|
|
|
.strength-fill.weak {
|
|
background: var(--accent-red);
|
|
}
|
|
|
|
.strength-fill.medium {
|
|
background: var(--accent-orange, #ff9800);
|
|
}
|
|
|
|
.strength-fill.strong {
|
|
background: var(--accent-green);
|
|
}
|
|
|
|
.strength-label {
|
|
font-size: var(--font-size-sm);
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.strength-label.weak {
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.strength-label.medium {
|
|
color: var(--accent-orange, #ff9800);
|
|
}
|
|
|
|
.strength-label.strong {
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
/* Organization Assignments */
|
|
.org-assignments {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.org-assignments-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.org-assignment-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-md);
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.org-assignment-item:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.org-assignment-item .org-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.org-assignment-item .org-info .material-icons {
|
|
color: var(--accent-blue);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.org-assignment-item .org-name {
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.add-org-row {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
padding-top: var(--space-md);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.add-org-row .form-input {
|
|
flex: 1;
|
|
}
|
|
|
|
.add-org-row .btn-sm {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) var(--space-md);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.add-org-row .btn-sm .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.empty-state-inline {
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
padding: var(--space-lg);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.users-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.security-tips-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.user-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|