653 lines
9.5 KiB
CSS
653 lines
9.5 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: #1a1a2e;
|
|
color: #eee;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 24px;
|
|
background: #16213e;
|
|
border-bottom: 1px solid #0f3460;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #e94560;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.server-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 24px;
|
|
background: #16213e;
|
|
border-bottom: 1px solid #0f3460;
|
|
}
|
|
|
|
.server-bar label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.server-bar select {
|
|
padding: 8px 12px;
|
|
background: #0f3460;
|
|
border: 1px solid #1a1a2e;
|
|
color: #eee;
|
|
border-radius: 4px;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-badge.connected {
|
|
background: #0d7377;
|
|
color: #fff;
|
|
}
|
|
|
|
.status-badge.error {
|
|
background: #e94560;
|
|
color: #fff;
|
|
}
|
|
|
|
.main {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #e94560;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: #ff6b6b;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #0f3460;
|
|
color: #eee;
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: #16213e;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 4px 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Table */
|
|
.projects-table-container {
|
|
background: #16213e;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.projects-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.projects-table th,
|
|
.projects-table td {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #0f3460;
|
|
}
|
|
|
|
.projects-table th {
|
|
background: #0f3460;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.projects-table tr:hover {
|
|
background: rgba(233, 69, 96, 0.1);
|
|
}
|
|
|
|
.projects-table .loading {
|
|
text-align: center;
|
|
color: #888;
|
|
padding: 40px;
|
|
}
|
|
|
|
/* Status indicators */
|
|
.indicator {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.indicator.green { background: #0d7377; }
|
|
.indicator.yellow { background: #f39c12; }
|
|
.indicator.red { background: #e94560; }
|
|
.indicator.gray { background: #555; }
|
|
|
|
.status-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.diff-badge {
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.diff-badge.match { background: #0d7377; color: #fff; }
|
|
.diff-badge.different { background: #f39c12; color: #000; }
|
|
.diff-badge.missing { background: #e94560; color: #fff; }
|
|
.diff-badge.warning { background: #f39c12; color: #000; }
|
|
.diff-badge.unknown { background: #555; color: #fff; }
|
|
|
|
.actions-cell {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.modal-content {
|
|
background: #16213e;
|
|
border-radius: 8px;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
.modal-content.modal-wide {
|
|
max-width: 900px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid #0f3460;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-close {
|
|
background: none;
|
|
border: none;
|
|
color: #888;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-close:hover {
|
|
color: #eee;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Server form */
|
|
.server-list {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.server-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.server-item-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.server-item-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.server-item-host {
|
|
font-size: 12px;
|
|
color: #888;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: #0f3460;
|
|
border: 1px solid #1a1a2e;
|
|
border-radius: 4px;
|
|
color: #eee;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 12px;
|
|
color: #888;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Diff view */
|
|
.diff-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.diff-section h3 {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.diff-status {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.diff-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.diff-panel {
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.diff-panel h4 {
|
|
padding: 8px 12px;
|
|
background: #1a1a2e;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.diff-panel pre {
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
overflow: auto;
|
|
max-height: 300px;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.diff-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* Log output */
|
|
.log-output {
|
|
background: #0f3460;
|
|
padding: 16px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Project name styling */
|
|
.project-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.project-path {
|
|
font-size: 11px;
|
|
color: #888;
|
|
display: block;
|
|
}
|
|
|
|
/* Details modal - file checklist */
|
|
.details-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.details-section h3 {
|
|
margin-bottom: 12px;
|
|
color: #e94560;
|
|
}
|
|
|
|
.file-checklist {
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.file-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid #1a1a2e;
|
|
}
|
|
|
|
.file-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.file-item-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.file-item-icon.present {
|
|
background: #0d7377;
|
|
color: #fff;
|
|
}
|
|
|
|
.file-item-icon.missing {
|
|
background: #e94560;
|
|
color: #fff;
|
|
}
|
|
|
|
.file-item-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.file-item-name {
|
|
font-weight: 500;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.file-item-desc {
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
|
|
/* Fix instructions */
|
|
.fix-instructions {
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.fix-step {
|
|
margin-bottom: 16px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid #1a1a2e;
|
|
}
|
|
|
|
.fix-step:last-child {
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.fix-step-title {
|
|
font-weight: 500;
|
|
color: #f39c12;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.fix-step-cmd {
|
|
background: #1a1a2e;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.fix-step-note {
|
|
font-size: 12px;
|
|
color: #888;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.details-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* Issues badge */
|
|
.issues-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.issues-badge.ok {
|
|
background: #0d7377;
|
|
color: #fff;
|
|
}
|
|
|
|
.issues-badge.warning {
|
|
background: #f39c12;
|
|
color: #000;
|
|
}
|
|
|
|
.issues-badge.error {
|
|
background: #e94560;
|
|
color: #fff;
|
|
}
|
|
|
|
.issues-badge:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Checkbox group */
|
|
.checkbox-group {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Deploy confirmation modal */
|
|
.deploy-diff-summary {
|
|
margin-bottom: 16px;
|
|
padding: 12px;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.deploy-diff-summary.has-diff {
|
|
border-left: 4px solid #f39c12;
|
|
}
|
|
|
|
.deploy-diff-summary.no-diff {
|
|
border-left: 4px solid #0d7377;
|
|
}
|
|
|
|
.deploy-diff-details {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.deploy-file-diff {
|
|
margin-bottom: 16px;
|
|
background: #0f3460;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.deploy-file-diff h4 {
|
|
padding: 8px 12px;
|
|
background: #1a1a2e;
|
|
font-size: 13px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.deploy-file-diff .diff-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1px;
|
|
background: #1a1a2e;
|
|
}
|
|
|
|
.deploy-file-diff .diff-side {
|
|
background: #0f3460;
|
|
padding: 12px;
|
|
}
|
|
|
|
.deploy-file-diff .diff-side-header {
|
|
font-size: 11px;
|
|
color: #888;
|
|
margin-bottom: 8px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.deploy-file-diff pre {
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
max-height: 200px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.deploy-confirm-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
padding-top: 16px;
|
|
border-top: 1px solid #0f3460;
|
|
}
|
|
|
|
/* Logs modal */
|
|
.logs-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.logs-hint {
|
|
font-size: 12px;
|
|
color: #888;
|
|
}
|
|
|
|
#logs-content {
|
|
max-height: 500px;
|
|
font-family: 'Consolas', 'Monaco', monospace;
|
|
}
|
|
|
|
/* Server item with sudo badge */
|
|
.server-item-badges {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.server-sudo-badge {
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
background: #f39c12;
|
|
color: #000;
|
|
border-radius: 3px;
|
|
}
|