mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-10-26 06:19:53 +00:00
d57fe3dc49
Adds local verification and distribution of signed generic incoming-only agent releases, mobile-friendly QR activation, and the supporting generator interfaces. Includes the current staged console, documentation, localization, and builder changes.\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
410 lines
7.7 KiB
CSS
410 lines
7.7 KiB
CSS
/* =========================================================================
|
|
BetterDesk Support Generator panel
|
|
========================================================================= */
|
|
|
|
.generator-module-gate {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.gen-module-intro {
|
|
margin: 0 0 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.gen-module-bullets {
|
|
margin: 0 0 16px;
|
|
padding-left: 1.25rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.gen-module-status {
|
|
margin-bottom: 16px;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
background: var(--color-bg-elevated, rgba(255, 255, 255, 0.03));
|
|
font-size: 13px;
|
|
}
|
|
|
|
.gen-module-status.is-error {
|
|
color: var(--color-danger, #ef4444);
|
|
}
|
|
|
|
.gen-module-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.gen-operation-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2000;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.gen-operation-modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.gen-operation-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.68);
|
|
}
|
|
|
|
.gen-operation-dialog {
|
|
position: relative;
|
|
width: min(440px, calc(100vw - 32px));
|
|
padding: 28px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.14));
|
|
border-radius: 14px;
|
|
background: var(--color-bg-card, #17202b);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.gen-operation-dialog h2 {
|
|
margin: 0 0 8px;
|
|
}
|
|
|
|
.gen-operation-dialog p {
|
|
margin: 0 0 16px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.gen-operation-spinner {
|
|
width: 30px;
|
|
height: 30px;
|
|
margin-bottom: 18px;
|
|
border: 3px solid rgba(255, 255, 255, 0.2);
|
|
border-top-color: var(--color-primary, #4dabf7);
|
|
border-radius: 50%;
|
|
animation: gen-operation-spin 0.8s linear infinite;
|
|
}
|
|
|
|
.gen-operation-progress {
|
|
height: 6px;
|
|
overflow: hidden;
|
|
margin-bottom: 12px;
|
|
border-radius: 99px;
|
|
background: rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.gen-operation-progress span {
|
|
display: block;
|
|
width: 38%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: var(--color-primary, #4dabf7);
|
|
animation: gen-operation-progress 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes gen-operation-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes gen-operation-progress {
|
|
0% { transform: translateX(-120%); }
|
|
100% { transform: translateX(330%); }
|
|
}
|
|
|
|
.generator-layout {
|
|
display: grid;
|
|
grid-template-columns: 320px 1fr;
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
.generic-agent-release-card {
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.generic-agent-release-list {
|
|
display: grid;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.generic-agent-release-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
padding: var(--space-sm) var(--space-md);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
.generic-agent-release-item {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.generator-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.bundle-item-title {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.badge-product--legacy {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
padding: 1px 6px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.16));
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.gen-legacy-hint {
|
|
margin-bottom: 16px;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.12));
|
|
background: var(--color-bg-elevated, rgba(255, 255, 255, 0.03));
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.gen-build-capability-status {
|
|
margin-bottom: 16px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-danger, #ef4444);
|
|
border-radius: 8px;
|
|
color: var(--color-danger, #ef4444);
|
|
background: var(--color-bg-elevated, rgba(239, 68, 68, 0.08));
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.gen-legacy-leftovers {
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
}
|
|
|
|
.gen-legacy-leftovers-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.gen-legacy-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.gen-legacy-row-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.platforms-checklist {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px 12px;
|
|
margin: 8px 0 16px;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.platforms-checklist {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.platform-check {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
line-height: 1.35;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.platform-check.is-unavailable {
|
|
cursor: not-allowed;
|
|
opacity: 0.58;
|
|
}
|
|
|
|
.platform-check .platform-unavailable {
|
|
flex-basis: 100%;
|
|
margin-left: 24px;
|
|
color: var(--color-text-muted, #9ca3af);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.platform-check input {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ---- Bundle list ---- */
|
|
|
|
.generator-bundles .card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.bundle-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.bundle-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 2px;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bundle-item:hover,
|
|
.bundle-item.active {
|
|
border-color: var(--color-primary, #2563eb);
|
|
background: var(--color-bg-elevated, rgba(37, 99, 235, 0.08));
|
|
}
|
|
|
|
.bundle-item.revoked {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.bundle-item-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bundle-item-meta {
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.editor-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.download-link-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.download-link-row .input-prefix {
|
|
opacity: 0.7;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.download-link-row .form-input {
|
|
flex: 1;
|
|
}
|
|
|
|
.builds-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.builds-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.build-row {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.build-row-main {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.build-progress {
|
|
height: 6px;
|
|
overflow: hidden;
|
|
margin-top: 10px;
|
|
border-radius: 99px;
|
|
background: rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.build-progress span {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: var(--color-primary, #4dabf7);
|
|
transition: width 0.35s ease;
|
|
}
|
|
|
|
.build-progress-meta {
|
|
margin-top: 4px;
|
|
font-size: 11px;
|
|
color: var(--color-text-muted, #94a3b8);
|
|
}
|
|
|
|
.build-error {
|
|
margin-top: 6px;
|
|
font-size: 12px;
|
|
color: var(--color-danger, #ef4444);
|
|
}
|
|
|
|
.validation-errors {
|
|
margin-top: 12px;
|
|
color: var(--color-danger, #ef4444);
|
|
}
|
|
|
|
.section-title {
|
|
margin: 18px 0 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 16px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.empty-state .material-icons {
|
|
font-size: 40px;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|