feat:顶部添加进度条

This commit is contained in:
Roe-xin
2026-01-05 11:27:06 +08:00
parent 8dc34ee435
commit de3e84aa4e
2 changed files with 312 additions and 0 deletions

View File

@ -18,6 +18,11 @@ import {
getMessageAreaScript,
} from "./messageArea";
import { getAgentCardStyles, getAgentCardScript } from "./agentCard";
import {
getProgressBarContent,
getProgressBarStyles,
getProgressBarScript,
} from "./progressBar";
import { getCurrentEnv } from "../config/settings";
/**
* 获取 WebView 面板的 HTML 内容
@ -80,6 +85,7 @@ export function getWebviewContent(
${getAgentCardStyles()}
${getWaveformPreviewContent()}
${getConversationHistoryBarStyles()}
${getProgressBarStyles()}
${getInputAreaStyles()}
.file-editor-section {
@ -385,6 +391,7 @@ export function getWebviewContent(
</head>
<body>
${getConversationHistoryBarContent()}
${getProgressBarContent()}
<div class="header">
<div style="display: flex; align-items: center; justify-content: center; gap: 10px;">
<img src="${iconUri}" alt="IC Coder" style="width: 28px; height: 28px;" />
@ -701,6 +708,7 @@ export function getWebviewContent(
${getAgentCardScript()}
${getWaveformPreviewScript()}
${getConversationHistoryBarScript()}
${getProgressBarScript()}
${getInputAreaScript()}
</script></body>
</html>`;