main #34
@ -239,175 +239,230 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
/* ---------- 变量 ---------- */
|
||||||
|
:root {
|
||||||
|
--primary: #5433ff;
|
||||||
|
--primary-light: #7c4dff;
|
||||||
|
--success: #00c853;
|
||||||
|
--error : #ff3d00;
|
||||||
|
--warning: #ffab00;
|
||||||
|
--bg : #91b0ee;
|
||||||
|
--card-bg: #ffffff;
|
||||||
|
--text : #5433ff; /* 原来是 #303133 之类偏蓝灰,现改为中性深灰 */
|
||||||
|
--text-light: #59a4e6;
|
||||||
|
--border : #e0e4ec;
|
||||||
|
--radius : 10px;
|
||||||
|
--shadow : 0 2px 12px rgba(0,0,0,.06);
|
||||||
|
--shadow-hover: 0 6px 20px rgba(0,0,0,.08);
|
||||||
|
--transition: all .3s cubic-bezier(.4,0,.2,1);
|
||||||
|
}
|
||||||
|
/* ---------- 基础 ---------- */
|
||||||
.deploy-container {
|
.deploy-container {
|
||||||
padding: 20px;
|
min-height: 100vh;
|
||||||
|
background: var(--bg);
|
||||||
|
padding: 32px 24px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 24px;
|
||||||
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connection-config, .deploy-control {
|
/* ---------- 标题 ---------- */
|
||||||
margin-bottom: 30px;
|
h2 {
|
||||||
background-color: white;
|
margin: 0 0 12px;
|
||||||
padding: 20px;
|
font-size: 26px;
|
||||||
border-radius: 8px;
|
font-weight: 600;
|
||||||
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
color: var(--text);
|
||||||
|
letter-spacing: -.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connection-config h3, .deploy-control h3 {
|
h3 {
|
||||||
color: #333;
|
margin: 0 0 20px;
|
||||||
margin-bottom: 15px;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
h3::before {
|
||||||
|
content: "";
|
||||||
|
width: 4px;
|
||||||
|
height: 18px;
|
||||||
|
background: var(--primary);
|
||||||
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------- 卡片 ---------- */
|
||||||
|
.connection-config,
|
||||||
|
.deploy-control {
|
||||||
|
background: var(--card-bg);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
padding: 28px 32px;
|
||||||
|
transition: var(--transition);
|
||||||
|
border-left: 4px solid transparent;
|
||||||
|
}
|
||||||
|
.connection-config:hover,
|
||||||
|
.deploy-control:hover {
|
||||||
|
box-shadow: var(--shadow-hover);
|
||||||
|
border-left-color: var(--primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- 输入组 ---------- */
|
||||||
.input-group {
|
.input-group {
|
||||||
margin-bottom: 15px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group label {
|
.input-group label {
|
||||||
display: inline-block;
|
font-weight: 500;
|
||||||
width: 100px;
|
color: var(--text);
|
||||||
font-weight: bold;
|
white-space: nowrap;
|
||||||
color: #555;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.url-input {
|
.url-input {
|
||||||
width: 300px;
|
flex: 1;
|
||||||
padding: 8px 12px;
|
max-width: 420px;
|
||||||
border: 1px solid #ddd;
|
padding: 10px 14px;
|
||||||
border-radius: 4px;
|
border: 1px solid var(--border);
|
||||||
|
border-radius: var(--radius);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
transition: var(--transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
.url-input:focus {
|
.url-input:focus {
|
||||||
|
border-color: var(--primary);
|
||||||
|
box-shadow: 0 0 0 3px rgba(124,77,255,.15);
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: #2196F3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-group {
|
/* ---------- 按钮 ---------- */
|
||||||
margin-top: 15px;
|
.button-group,
|
||||||
|
.deploy-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 12px;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
.connect-btn,
|
||||||
.connect-btn, .disconnect-btn, .deploy-btn, .clear-btn {
|
.disconnect-btn,
|
||||||
|
.deploy-btn,
|
||||||
|
.clear-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: var(--radius);
|
||||||
cursor: pointer;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-right: 10px;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s;
|
transition: var(--transition);
|
||||||
|
box-shadow: 0 2px 6px rgba(0,0,0,.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.connect-btn {
|
.connect-btn {
|
||||||
background-color: #4CAF50;
|
background: linear-gradient(135deg, var(--success) 0%, #00e676 100%);
|
||||||
color: white;
|
color: #26dc0e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connect-btn:hover:not(:disabled) {
|
.connect-btn:hover:not(:disabled) {
|
||||||
background-color: #45a049;
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(0,200,83,.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.disconnect-btn {
|
.disconnect-btn {
|
||||||
background-color: #f44336;
|
background: linear-gradient(135deg, var(--error) 0%, #ff6d00 100%);
|
||||||
color: white;
|
color: #ef4b4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disconnect-btn:hover:not(:disabled) {
|
.disconnect-btn:hover:not(:disabled) {
|
||||||
background-color: #da190b;
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(255,61,0,.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.deploy-btn {
|
.deploy-btn {
|
||||||
background-color: #2196F3;
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
||||||
color: white;
|
color: #2eb309;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deploy-btn:hover:not(:disabled) {
|
.deploy-btn:hover:not(:disabled) {
|
||||||
background-color: #1976D2;
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(84,51,255,.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.clear-btn {
|
.clear-btn {
|
||||||
background-color: #9E9E9E;
|
background: #133419;
|
||||||
color: white;
|
color: #fff;
|
||||||
margin-top: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.clear-btn:hover {
|
.clear-btn:hover {
|
||||||
background-color: #757575;
|
background: #757575;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:disabled {
|
button:disabled {
|
||||||
background-color: #ccc;
|
background: #e0e0e0;
|
||||||
|
color: #9e9e9e;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------- 状态标签 ---------- */
|
||||||
.status-display {
|
.status-display {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-item {
|
.status-item {
|
||||||
padding: 10px;
|
padding: 12px 16px;
|
||||||
margin: 10px 0;
|
border-radius: var(--radius);
|
||||||
border-radius: 4px;
|
|
||||||
border-left: 4px solid;
|
border-left: 4px solid;
|
||||||
|
font-size: 14px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
.status-success { background: #e8f5e9; border-color: var(--success); color: #2e7d32; }
|
||||||
|
.status-error { background: #ffebee; border-color: var(--error); color: #c62828; }
|
||||||
|
.status-warning { background: #fff8e1; border-color: var(--warning); color: #f57c00; }
|
||||||
|
.status-info { background: #e3f2fd; border-color: var(--primary); color: #1565c0; }
|
||||||
|
.status-label { font-weight: 600; }
|
||||||
|
|
||||||
.status-success {
|
/* ---------- 日志区(暗色终端) ---------- */
|
||||||
background-color: #e8f5e8;
|
|
||||||
border-left-color: #4caf50;
|
|
||||||
color: #2e7d32;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-error {
|
|
||||||
background-color: #ffebee;
|
|
||||||
border-left-color: #f44336;
|
|
||||||
color: #c62828;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-warning {
|
|
||||||
background-color: #fff3e0;
|
|
||||||
border-left-color: #ff9800;
|
|
||||||
color: #e65100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-info {
|
|
||||||
background-color: #e8f4f8;
|
|
||||||
border-left-color: #2196F3;
|
|
||||||
color: #1565c0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-label {
|
|
||||||
font-weight: bold;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.deploy-actions {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-section {
|
.log-section {
|
||||||
margin-top: 30px;
|
margin-top: 28px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 420px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-section h4 {
|
.log-section h4 {
|
||||||
color: #333;
|
margin: 0 0 12px;
|
||||||
margin-bottom: 10px;
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-output {
|
.log-output {
|
||||||
background-color: #f8f8f8;
|
flex: 1;
|
||||||
border: 1px solid #ddd;
|
background: #1e1e1e;
|
||||||
padding: 15px;
|
color: #cdd3de;
|
||||||
border-radius: 4px;
|
border: 1px solid #2d2d2d;
|
||||||
font-family: 'Courier New', monospace;
|
border-radius: var(--radius);
|
||||||
|
padding: 16px;
|
||||||
|
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
max-height: 300px;
|
line-height: 1.5;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
line-height: 1.4;
|
word-break: break-all;
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
counter-reset: line;
|
||||||
|
}
|
||||||
|
.log-line {
|
||||||
|
counter-increment: line;
|
||||||
|
position: relative;
|
||||||
|
padding-left: 40px;
|
||||||
|
}
|
||||||
|
.log-line::before {
|
||||||
|
content: counter(line);
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
width: 32px;
|
||||||
|
text-align: right;
|
||||||
|
color: #5c6370;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-line {
|
/* ---------- 旋转动画 ---------- */
|
||||||
margin-bottom: 4px;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
/* 旋转动画 */
|
|
||||||
.spin-box { display: inline-flex; align-items: center; gap: 6px; }
|
.spin-box { display: inline-flex; align-items: center; gap: 6px; }
|
||||||
.spin { width: 16px; height: 16px; fill: currentColor; animation: spin 1s linear infinite; }
|
.spin { width: 16px; height: 16px; fill: currentColor; animation: spin 1s linear infinite; }
|
||||||
@keyframes spin { to { transform: rotate(360deg); } }
|
@keyframes spin { to { transform: rotate(360deg); } }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user