686 lines
11 KiB
CSS
686 lines
11 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background: #f5f6fa;
|
|
color: #333;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-container {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 220px;
|
|
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
|
|
color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
height: 100vh;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 20px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.sidebar-header h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.sidebar-header span {
|
|
font-size: 12px;
|
|
color: rgba(255,255,255,0.6);
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 15px 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 20px;
|
|
color: rgba(255,255,255,0.7);
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: rgba(255,255,255,0.1);
|
|
color: #fff;
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: rgba(255,255,255,0.15);
|
|
color: #fff;
|
|
border-left-color: #4a9eff;
|
|
}
|
|
|
|
.nav-icon {
|
|
margin-right: 12px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 15px 20px;
|
|
border-top: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.server-status {
|
|
font-size: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.server-status.online { color: #52c41a; }
|
|
.server-status.offline { color: #f5222d; }
|
|
|
|
.main-content {
|
|
flex: 1;
|
|
margin-left: 220px;
|
|
padding: 25px;
|
|
max-width: calc(100% - 220px);
|
|
}
|
|
|
|
.page {
|
|
display: none;
|
|
}
|
|
|
|
.page.active {
|
|
display: block;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.page-header h2 {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: #1a1a2e;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.section {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.section h3 {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
margin-bottom: 15px;
|
|
color: #333;
|
|
}
|
|
|
|
.dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #333;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 13px;
|
|
color: #888;
|
|
}
|
|
|
|
.stat-card.success .stat-icon { color: #52c41a; }
|
|
.stat-card.warning .stat-icon { color: #fa8c16; }
|
|
.stat-card.danger .stat-icon { color: #f5222d; }
|
|
|
|
.nodes-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.node-card {
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
|
border-left: 4px solid #52c41a;
|
|
}
|
|
|
|
.node-card.warning { border-left-color: #fa8c16; }
|
|
.node-card.offline { border-left-color: #f5222d; }
|
|
|
|
.node-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.node-header h3 {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-badge {
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-badge.online { background: #e6f7e6; color: #52c41a; }
|
|
.status-badge.warning { background: #fff1e6; color: #fa8c16; }
|
|
.status-badge.offline { background: #fff1f0; color: #f5222d; }
|
|
|
|
.node-info {
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.node-info p {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.node-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nodes-table {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.table th, .table td {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.table th {
|
|
background: #fafafa;
|
|
font-weight: 500;
|
|
color: #666;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.table tr:hover {
|
|
background: #fafafa;
|
|
}
|
|
|
|
.config-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 15px;
|
|
}
|
|
|
|
.config-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.input, .select, .textarea {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input:focus, .select:focus, .textarea:focus {
|
|
outline: none;
|
|
border-color: #4a9eff;
|
|
}
|
|
|
|
.textarea {
|
|
min-height: 100px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
background: #4a9eff;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: #3a8eff;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #f5f5f5;
|
|
color: #666;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #fff1f0;
|
|
color: #f5222d;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #ffccc7;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 12px 30px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.btn-xs {
|
|
padding: 3px 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
white-space: nowrap;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.checkbox-inline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-right: 15px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.event-types {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.send-form, .broadcast-form {
|
|
max-width: 500px;
|
|
}
|
|
|
|
.send-form .btn-lg, .broadcast-form .btn-lg {
|
|
width: 100%;
|
|
}
|
|
|
|
.api-info {
|
|
max-width: 700px;
|
|
}
|
|
|
|
.api-endpoint {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.api-endpoint label, .api-example label {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: #666;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.code-block {
|
|
background: #f5f5f5;
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.code-block code {
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
font-size: 13px;
|
|
color: #333;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.code-block pre {
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
font-size: 12px;
|
|
color: #333;
|
|
white-space: pre-wrap;
|
|
margin: 0;
|
|
}
|
|
|
|
.docs-content h3 {
|
|
margin-top: 25px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.docs-content h3:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.docs-content p {
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.docs-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.docs-table th, .docs-table td {
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
border: 1px solid #e8e8e8;
|
|
}
|
|
|
|
.docs-table th {
|
|
background: #fafafa;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.about-info {
|
|
color: #666;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.5);
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
width: 450px;
|
|
max-width: 90%;
|
|
max-height: 85vh;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin-bottom: 20px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 20px;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: #999;
|
|
}
|
|
|
|
.close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 15px 0 10px;
|
|
padding: 8px 12px;
|
|
background: #f5f5f5;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.section-header:hover {
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.section-arrow {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.section-content {
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.field-desc {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
padding: 12px 25px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: all 0.3s;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.toast.success {
|
|
background: #e6f7e6;
|
|
color: #52c41a;
|
|
}
|
|
|
|
.toast.error {
|
|
background: #fff1f0;
|
|
color: #f5222d;
|
|
}
|
|
|
|
.status-online { color: #52c41a; }
|
|
.status-inactive { color: #999; }
|
|
.status-error { color: #f5222d; }
|
|
.status-wechat-online { color: #52c41a; }
|
|
.status-wechat-offline { color: #f5222d; }
|
|
.status-wechat-unknown { color: #999; }
|
|
|
|
small {
|
|
font-size: 12px;
|
|
color: #999;
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.empty {
|
|
text-align: center;
|
|
color: #999;
|
|
padding: 40px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.dashboard-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
width: 60px;
|
|
}
|
|
|
|
.sidebar-header h1, .sidebar-header span, .nav-item span {
|
|
display: none;
|
|
}
|
|
|
|
.nav-item {
|
|
justify-content: center;
|
|
padding: 15px;
|
|
}
|
|
|
|
.nav-icon {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: 60px;
|
|
max-width: calc(100% - 60px);
|
|
}
|
|
|
|
.config-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.log-section {
|
|
max-height: calc(100vh - 200px);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.log-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
background: #1e1e1e;
|
|
color: #d4d4d4;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
min-height: 400px;
|
|
max-height: calc(100vh - 250px);
|
|
}
|
|
|
|
.log-entry {
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid #333;
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.log-entry:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.log-time {
|
|
color: #888;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.log-level {
|
|
font-weight: 600;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.log-source {
|
|
color: #9cdcfe;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.log-message {
|
|
flex: 1;
|
|
word-break: break-all;
|
|
}
|