diff --git a/src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue b/src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue new file mode 100644 index 0000000..6f8dc16 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/code/CodeDiffViewer.vue @@ -0,0 +1,146 @@ + + + + + 暂无代码变更 + + + + {{ diff.file }} + + +{{ diff.added }} + -{{ diff.removed }} + + + + + {{ line.num }} + {{ line.prefix }} + {{ line.text }} + + + + + + + + + diff --git a/src/agentkit/server/frontend/src/components/code/FileTree.vue b/src/agentkit/server/frontend/src/components/code/FileTree.vue new file mode 100644 index 0000000..bdc4890 --- /dev/null +++ b/src/agentkit/server/frontend/src/components/code/FileTree.vue @@ -0,0 +1,162 @@ + + + + + 暂无文件 + + + + + {{ file.name }} + + {{ getStatusLabel(file.status) }} + + + + + + + + + diff --git a/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue b/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue index 2af8457..4c5ab84 100644 --- a/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue +++ b/src/agentkit/server/frontend/src/views/KnowledgeBaseView.vue @@ -32,8 +32,8 @@ onMounted(() => { diff --git a/src/agentkit/server/frontend/src/views/WorkflowView.vue b/src/agentkit/server/frontend/src/views/WorkflowView.vue index 6d0abee..02b735b 100644 --- a/src/agentkit/server/frontend/src/views/WorkflowView.vue +++ b/src/agentkit/server/frontend/src/views/WorkflowView.vue @@ -315,55 +315,54 @@ function handleBack() { display: flex; flex-direction: column; height: 100%; - padding: 16px; + padding: var(--space-4); } .list-header { display: flex; align-items: center; justify-content: space-between; - margin-bottom: 16px; + margin-bottom: var(--space-4); } .list-header h3 { margin: 0; - font-size: 16px; + font-size: var(--font-md); } .list-body { display: flex; flex-direction: column; - gap: 8px; + gap: var(--space-2); } .workflow-item { display: flex; align-items: center; - padding: 12px 16px; - background: #fff; - border: 1px solid #e8e8e8; - border-radius: 8px; + padding: var(--space-3) var(--space-4); + background: var(--bg-primary); + border: 1px solid var(--border-color); + border-radius: var(--radius-lg); cursor: pointer; - transition: all 0.2s; - gap: 12px; + transition: all var(--transition-fast); + gap: var(--space-3); } .workflow-item:hover { - border-color: #1890ff; - box-shadow: 0 2px 8px rgba(24, 144, 255, 0.12); + border-color: var(--color-primary); + box-shadow: var(--shadow-md); } .item-name { - font-weight: 500; - font-size: 14px; - flex: 1; + font-weight: var(--font-weight-medium); + font-size: var(--font-base); } .item-meta { display: flex; - gap: 8px; - font-size: 12px; - color: #999; + gap: var(--space-2); + font-size: var(--font-xs); + color: var(--text-tertiary); } .editor-main { @@ -382,8 +381,8 @@ function handleBack() { } .execution-history { - border-top: 1px solid #f0f0f0; - background: #fafafa; + border-top: 1px solid var(--border-color); + background: var(--bg-secondary); flex-shrink: 0; } @@ -391,20 +390,20 @@ function handleBack() { display: flex; align-items: center; justify-content: space-between; - padding: 8px 16px; + padding: var(--space-2) var(--space-4); cursor: pointer; - font-size: 13px; - font-weight: 500; - color: #666; + font-size: var(--font-sm); + font-weight: var(--font-weight-medium); + color: var(--text-secondary); user-select: none; } .history-header:hover { - background: #f0f0f0; + background: var(--bg-tertiary); } .history-body { - padding: 0 16px 8px; + padding: 0 var(--space-4) var(--space-2); } .back-bar { @@ -414,16 +413,16 @@ function handleBack() { right: 300px; display: flex; align-items: center; - gap: 8px; - padding: 8px 12px; + gap: var(--space-2); + padding: var(--space-2) var(--space-3); background: rgba(255, 255, 255, 0.95); - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid var(--border-color); z-index: 20; } .workflow-name { - font-weight: 600; - font-size: 14px; - color: #333; + font-weight: var(--font-weight-semibold); + font-size: var(--font-base); + color: var(--text-primary); }
暂无代码变更
暂无文件