mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
992ba235f7
- Added support for various remote control features in the Support Agent, including file transfer, in-session chat, remote audio, and control actions (lock/restart). - Introduced capability flags for incoming session features, allowing for more granular control over permissions. - Updated documentation to reflect the new Support Agent functionalities and connection resilience improvements, including fallback mechanisms for API endpoints. - Enhanced the build process with optional branding sealing and improved error handling for Docker configurations.
523 lines
10 KiB
CSS
523 lines
10 KiB
CSS
/* =========================================================================
|
|
Agent Generator panel
|
|
========================================================================= */
|
|
|
|
.generator-layout {
|
|
display: grid;
|
|
grid-template-columns: 320px 1fr;
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.generator-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ---- Bundle list ---- */
|
|
|
|
.generator-bundles .card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.bundle-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.bundle-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 12px 14px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
background: var(--color-bg-elevated, rgba(255, 255, 255, 0.03));
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.bundle-item:hover {
|
|
background: var(--color-bg-hover, rgba(255, 255, 255, 0.06));
|
|
}
|
|
|
|
.bundle-item.active {
|
|
border-color: var(--color-primary, #2563eb);
|
|
background: rgba(37, 99, 235, 0.08);
|
|
}
|
|
|
|
.bundle-item-title {
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.bundle-item-meta {
|
|
font-size: 12px;
|
|
color: var(--color-text-muted, #8b949e);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.bundle-item .badge-revoked {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
background: rgba(220, 53, 69, 0.15);
|
|
color: #f87171;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* ---- Editor ---- */
|
|
|
|
.generator-editor .card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.editor-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.editor-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 320px;
|
|
gap: 24px;
|
|
}
|
|
|
|
@media (max-width: 1280px) {
|
|
.editor-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.editor-fields .section-title {
|
|
margin-top: 20px;
|
|
margin-bottom: 12px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--color-text-muted, #8b949e);
|
|
}
|
|
|
|
.editor-fields .section-title:first-child {
|
|
margin-top: 0;
|
|
padding-top: 0;
|
|
border-top: none;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.form-row { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.form-group-checkbox {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.form-color {
|
|
height: 40px;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 20px;
|
|
color: var(--color-text-muted, #8b949e);
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-state .material-icons {
|
|
font-size: 56px;
|
|
margin-bottom: 12px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* ---- Live preview ---- */
|
|
|
|
.editor-preview {
|
|
position: sticky;
|
|
top: 20px;
|
|
}
|
|
|
|
.agent-preview {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.agent-preview-frame {
|
|
width: 100%;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
background: var(--brand-bg, #0f172a);
|
|
color: var(--brand-text, #e2e8f0);
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.agent-preview-frame .ap-header {
|
|
background: var(--brand-accent);
|
|
color: var(--brand-header-text, #fff);
|
|
padding: 14px;
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ap-body-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 72px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.ap-body-logo img {
|
|
max-height: 72px;
|
|
max-width: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.ap-body-logo .material-icons {
|
|
font-size: 48px;
|
|
color: var(--brand-text-muted, #94a3b8);
|
|
}
|
|
|
|
.color-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.ap-logo {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ap-logo img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.ap-brand {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.ap-brand-name {
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ap-brand-text {
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
margin-top: 2px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.ap-body {
|
|
padding: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.ap-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
color: var(--brand-text-muted, #94a3b8);
|
|
}
|
|
|
|
.ap-status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--brand-status-ready, #22c55e);
|
|
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
|
|
}
|
|
|
|
.ap-id-row, .ap-pw-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 10px 12px;
|
|
background: var(--brand-surface, rgba(255, 255, 255, 0.04));
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.ap-id-label {
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.ap-id-value {
|
|
font-family: ui-monospace, SFMono-Regular, monospace;
|
|
font-size: 16px;
|
|
letter-spacing: 1px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ap-pw {
|
|
color: var(--brand-primary);
|
|
}
|
|
|
|
.ap-help {
|
|
margin-top: 4px;
|
|
padding: 13px;
|
|
background: rgba(37, 99, 235, 0.12);
|
|
color: var(--brand-primary, #2563eb);
|
|
border: 1px solid var(--brand-primary, #2563eb);
|
|
border-radius: 10px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
cursor: not-allowed;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.ap-help .material-icons { font-size: 20px; }
|
|
|
|
.ap-chat {
|
|
margin-top: 4px;
|
|
padding: 14px;
|
|
background: var(--brand-primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
cursor: not-allowed;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.ap-footer {
|
|
padding: 10px 14px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.ap-icon-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: none;
|
|
background: transparent;
|
|
color: #94a3b8;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6px;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ap-icon-btn .material-icons { font-size: 18px; }
|
|
|
|
.ap-contact {
|
|
flex: 1;
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ---- Download link block ---- */
|
|
|
|
.download-info {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.builds-section {
|
|
margin-bottom: 24px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
}
|
|
|
|
.builds-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.builds-section-header .section-title {
|
|
margin: 0;
|
|
}
|
|
|
|
.builds-summary {
|
|
font-size: 13px;
|
|
color: var(--color-text-muted, #8b949e);
|
|
margin: 8px 0 12px;
|
|
}
|
|
|
|
.builds-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.builds-table th,
|
|
.builds-table td {
|
|
padding: 8px 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
|
|
vertical-align: top;
|
|
}
|
|
|
|
.builds-table th {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.4px;
|
|
color: var(--color-text-muted, #8b949e);
|
|
}
|
|
|
|
.build-error {
|
|
margin-top: 4px;
|
|
font-size: 11px;
|
|
color: #f87171;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.build-error-hint {
|
|
margin-top: 4px;
|
|
font-size: 11px;
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.build-actions {
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
.toolchain-banner {
|
|
margin: 8px 0 12px;
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.toolchain-banner--ok {
|
|
background: rgba(34, 197, 94, 0.12);
|
|
color: #4ade80;
|
|
border: 1px solid rgba(34, 197, 94, 0.25);
|
|
}
|
|
|
|
.toolchain-banner--warn {
|
|
background: rgba(245, 158, 11, 0.12);
|
|
color: #fbbf24;
|
|
border: 1px solid rgba(245, 158, 11, 0.3);
|
|
}
|
|
|
|
.build-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.build-badge--ready { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
|
|
.build-badge--pending { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
|
|
.build-badge--building { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
|
|
.build-badge--failed { background: rgba(220, 53, 69, 0.15); color: #f87171; }
|
|
|
|
.download-link-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.download-link-row .form-input { flex: 1; min-width: 200px; }
|
|
|
|
.download-link-row .input-prefix {
|
|
color: var(--text-muted, #94a3b8);
|
|
font-family: var(--font-mono, monospace);
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
|
|
/* ---- Validation errors ---- */
|
|
|
|
.validation-errors {
|
|
margin-top: 16px;
|
|
padding: 12px 14px;
|
|
background: rgba(220, 53, 69, 0.1);
|
|
border: 1px solid rgba(220, 53, 69, 0.3);
|
|
border-radius: 8px;
|
|
color: #f87171;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.validation-errors ul { margin: 4px 0 0 18px; }
|
|
|
|
.hidden { display: none !important; }
|