feat: add server process control panel to Tauri app
This commit is contained in:
1 parent
818d9f99e6
commit
99672b33d0
7 files changed
+437
-2
No files matched your search
@@ -0,0 +1,146 @@
|
||||
.server-panel {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
margin: 8px 12px;
|
||||
overflow: hidden;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.server-panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.server-panel-header:hover {
|
||||
background: var(--surface-hover, rgba(255,255,255,0.04));
|
||||
}
|
||||
|
||||
.server-panel-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.server-status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.server-panel-label {
|
||||
color: var(--text-secondary, #9ca3af);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.server-status-text {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.server-panel-chevron {
|
||||
font-size: 10px;
|
||||
color: var(--text-secondary, #9ca3af);
|
||||
}
|
||||
|
||||
.server-panel-body {
|
||||
padding: 4px 12px 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.sp-label {
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary, #9ca3af);
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.sp-input {
|
||||
background: var(--input-bg, #1a1a1e);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--text, #e5e7eb);
|
||||
font-size: 12px;
|
||||
padding: 6px 8px;
|
||||
outline: none;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
|
||||
.sp-input:focus {
|
||||
border-color: var(--accent, #5b6af0);
|
||||
}
|
||||
|
||||
.sp-input:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.sp-input-num {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.sp-actions {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.sp-btn {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s, transform 0.1s;
|
||||
}
|
||||
|
||||
.sp-btn:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.sp-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.sp-btn-start {
|
||||
background: var(--accent, #5b6af0);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sp-btn-start:hover:not(:disabled) {
|
||||
opacity: 0.88;
|
||||
}
|
||||
|
||||
.sp-btn-stop {
|
||||
background: #ef4444;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.sp-btn-stop:hover:not(:disabled) {
|
||||
opacity: 0.88;
|
||||
}
|
||||
|
||||
.sp-message {
|
||||
font-size: 11px;
|
||||
color: #22c55e;
|
||||
margin-top: 6px;
|
||||
word-break: break-all;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.sp-message-error {
|
||||
color: #ef4444;
|
||||
}
|
||||
Reference in new issue
Block a user