706 lines
12 KiB
CSS
706 lines
12 KiB
CSS
:root {
|
|
--primary-color: #007bff;
|
|
--primary-hover: #0056b3;
|
|
--success-color: #28a745;
|
|
--error-color: #dc3545;
|
|
--warning-color: #ff9800;
|
|
--info-color: #2196f3;
|
|
--text-color: #333;
|
|
--text-light: #666;
|
|
--bg-color: #f8f9fa;
|
|
--border-color: #ddd;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
min-width: 0;
|
|
width: 90%;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.card {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.history-panel {
|
|
width: 300px;
|
|
}
|
|
|
|
.main-panel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.task-list {
|
|
margin-top: 10px;
|
|
max-height: calc(100vh - 160px);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.task-container {
|
|
@extend .card;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
position: relative;
|
|
min-height: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.welcome-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
color: var(--text-light);
|
|
background: white;
|
|
z-index: 1;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.welcome-message h1 {
|
|
font-size: 2rem;
|
|
margin-bottom: 10px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.input-container {
|
|
@extend .card;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
#prompt-input {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
button {
|
|
padding: 12px 24px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: var(--primary-hover);
|
|
}
|
|
|
|
.task-item {
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
background-color: #f8f9fa;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.task-item:hover {
|
|
background-color: #e9ecef;
|
|
}
|
|
|
|
.task-item.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
#input-container.bottom {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.task-card {
|
|
background: #fff;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.task-card:hover {
|
|
transform: translateX(5px);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.status-pending {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.status-running {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.status-completed {
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.status-failed {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.step-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
width: 100%;
|
|
max-height: calc(100vh - 200px);
|
|
overflow-y: auto;
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.step-item {
|
|
padding: 15px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
margin-bottom: 10px;
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
.step-item .log-line:not(.result) {
|
|
opacity: 0.7;
|
|
color: #666;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.step-item .log-line.result {
|
|
opacity: 1;
|
|
color: #333;
|
|
font-size: 1em;
|
|
background: #e8f5e9;
|
|
border-left: 4px solid #4caf50;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.step-item.show {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
.log-line {
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.log-line.think,
|
|
.step-item pre.think {
|
|
background: var(--info-color-light);
|
|
border-left: 4px solid var(--info-color);
|
|
}
|
|
|
|
.log-line.tool,
|
|
.step-item pre.tool {
|
|
background: var(--warning-color-light);
|
|
border-left: 4px solid var(--warning-color);
|
|
}
|
|
|
|
.log-line.result,
|
|
.step-item pre.result {
|
|
background: var(--success-color-light);
|
|
border-left: 4px solid var(--success-color);
|
|
}
|
|
|
|
.log-line.error,
|
|
.step-item pre.error {
|
|
background: var(--error-color-light);
|
|
border-left: 4px solid var(--error-color);
|
|
}
|
|
|
|
.log-line.info,
|
|
.step-item pre.info {
|
|
background: var(--bg-color);
|
|
border-left: 4px solid var(--text-light);
|
|
}
|
|
|
|
.log-prefix {
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
margin-bottom: 5px;
|
|
color: #666;
|
|
}
|
|
|
|
.step-item pre {
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
margin-left: 20px;
|
|
overflow-x: hidden;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 0.9em;
|
|
line-height: 1.4;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
word-break: break-all;
|
|
max-width: 100%;
|
|
color: var(--text-color);
|
|
background: var(--bg-color);
|
|
|
|
&.log {
|
|
background: var(--bg-color);
|
|
border-left: 4px solid var(--text-light);
|
|
}
|
|
&.think {
|
|
background: var(--info-color-light);
|
|
border-left: 4px solid var(--info-color);
|
|
}
|
|
&.tool {
|
|
background: var(--warning-color-light);
|
|
border-left: 4px solid var(--warning-color);
|
|
}
|
|
&.result {
|
|
background: var(--success-color-light);
|
|
border-left: 4px solid var(--success-color);
|
|
}
|
|
}
|
|
|
|
/* Step division line style */
|
|
.step-divider {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin: 15px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.step-circle {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
font-size: 1.2em;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
z-index: 2;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* File interaction style */
|
|
.file-interaction {
|
|
margin-top: 15px;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
background-color: #f5f7fa;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.download-link {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.download-link:hover {
|
|
background-color: var(--primary-hover);
|
|
}
|
|
|
|
.preview-image {
|
|
max-width: 100%;
|
|
max-height: 200px;
|
|
margin-bottom: 10px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.preview-image:hover {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.audio-player {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.audio-player audio {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.run-button {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
background-color: var(--success-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9em;
|
|
margin-right: 10px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.run-button:hover {
|
|
background-color: #218838;
|
|
}
|
|
|
|
/* Full screen image modal box */
|
|
.image-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
z-index: 1000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.image-modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-content {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
}
|
|
|
|
.close-modal {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 30px;
|
|
color: white;
|
|
font-size: 30px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Python runs simulation modal boxes */
|
|
.python-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
z-index: 1000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.python-modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.python-console {
|
|
width: 80%;
|
|
height: 80%;
|
|
background-color: #1e1e1e;
|
|
color: #f8f8f8;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
font-family: 'Courier New', monospace;
|
|
overflow: auto;
|
|
}
|
|
|
|
.python-output {
|
|
white-space: pre-wrap;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.step-line {
|
|
flex-grow: 1;
|
|
height: 2px;
|
|
background-color: var(--border-color);
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.step-info {
|
|
margin-left: 15px;
|
|
font-weight: bold;
|
|
color: var(--text-light);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.step-item strong {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: #007bff;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.step-item div {
|
|
color: #444;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.loading {
|
|
padding: 15px;
|
|
color: #666;
|
|
text-align: center;
|
|
}
|
|
|
|
.ping {
|
|
color: #ccc;
|
|
text-align: center;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.error {
|
|
color: #dc3545;
|
|
padding: 10px;
|
|
background: #ffe6e6;
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.complete {
|
|
color: #28a745;
|
|
padding: 10px;
|
|
background: #e6ffe6;
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
pre {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.complete pre {
|
|
max-width: 100%;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.config-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 2000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.config-modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.config-modal-content {
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
|
width: 80%;
|
|
max-width: 800px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.config-modal-header {
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background-color: var(--info-color);
|
|
color: white;
|
|
border-top-left-radius: 8px;
|
|
border-top-right-radius: 8px;
|
|
}
|
|
|
|
.config-modal-header h2 {
|
|
margin-bottom: 10px;
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.config-modal-body {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
max-height: calc(90vh - 140px);
|
|
}
|
|
|
|
.config-modal-footer {
|
|
padding: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.config-section {
|
|
margin-bottom: 25px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.config-section:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.config-section h3 {
|
|
margin-bottom: 15px;
|
|
color: var(--info-color);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-size: 0.9rem;
|
|
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--info-color);
|
|
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
}
|
|
|
|
.config-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.primary-btn {
|
|
background-color: var(--info-color);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.primary-btn:hover {
|
|
background-color: #0069d9;
|
|
}
|
|
|
|
.secondary-btn {
|
|
background-color: var(--text-light);
|
|
}
|
|
|
|
.config-error {
|
|
color: var(--error-color);
|
|
margin-right: 15px;
|
|
font-weight: bold;
|
|
padding: 8px 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-group.error input {
|
|
border-color: var(--error-color);
|
|
box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
|
|
background-color: rgba(220, 53, 69, 0.05);
|
|
}
|
|
|
|
.form-group.error label {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.form-group .error-message {
|
|
color: var(--error-color);
|
|
font-size: 0.8rem;
|
|
margin-top: 5px;
|
|
display: block;
|
|
animation: errorAppear 0.3s ease;
|
|
}
|
|
|
|
@keyframes errorAppear {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-5px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.note-box {
|
|
background-color: #fff8e1;
|
|
border-left: 4px solid #ffc107;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.note-box p {
|
|
margin: 0 0 8px 0;
|
|
color: #856404;
|
|
}
|
|
|
|
.note-box p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.field-help {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
margin-top: 4px;
|
|
display: block;
|
|
}
|
|
|
|
.required-mark {
|
|
color: var(--error-color);
|
|
font-weight: bold;
|
|
}
|