From ebb9de52948d0dc0c95945f9556a4a19bde44e89 Mon Sep 17 00:00:00 2001 From: Roe-xin Date: Tue, 10 Mar 2026 14:02:44 +0800 Subject: [PATCH] =?UTF-8?q?tyle:=E4=BF=AE=E6=94=B9=E4=BA=86=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E9=9D=A2=E6=9D=BF=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=8F=8A?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=86=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E5=92=8Cweb=E7=AB=AF=E7=9A=84=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/exampleShowcase.ts | 47 -------- src/views/moreOptionsComponent.ts | 180 +----------------------------- src/views/webviewContent.ts | 12 +- 3 files changed, 9 insertions(+), 230 deletions(-) diff --git a/src/views/exampleShowcase.ts b/src/views/exampleShowcase.ts index b457e11..eaa2549 100644 --- a/src/views/exampleShowcase.ts +++ b/src/views/exampleShowcase.ts @@ -34,14 +34,6 @@ export function getExampleShowcaseContent(): string { - - `; } @@ -165,41 +157,6 @@ export function getExampleShowcaseStyles(): string { -webkit-box-orient: vertical; } - .web-link { - display: flex; - justify-content: center; - padding-top: 20px; - border-top: 1px solid var(--vscode-panel-border); - margin-top: 8px; - } - - .web-link-button { - display: flex; - align-items: center; - gap: 8px; - padding: 10px 20px; - background: transparent; - border: none; - text-decoration: none; - font-size: 14px; - font-weight: 600; - transition: all 0.2s ease; - background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #a855f7 100%); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; - outline: none; - } - - .web-link-button:focus { - outline: none; - } - - .web-link-button:hover { - transform: translateY(-1px); - opacity: 0.8; - } - .link-icon { font-size: 16px; } @@ -208,10 +165,6 @@ export function getExampleShowcaseStyles(): string { font-size: 16px; transition: transform 0.2s ease; } - - .web-link-button:hover .link-arrow { - transform: translateX(3px); - } `; } diff --git a/src/views/moreOptionsComponent.ts b/src/views/moreOptionsComponent.ts index 655372b..4e0bae1 100644 --- a/src/views/moreOptionsComponent.ts +++ b/src/views/moreOptionsComponent.ts @@ -1,6 +1,6 @@ /** * 更多选项组件 - * 包含用户手册和用户反馈入口 + * 包含用户手册入口 */ /** @@ -28,40 +28,10 @@ export function getMoreOptionsComponentContent(): string {
查看使用文档和帮助
- -
-
- - - -
-
-
用户反馈
-
提交问题和建议
-
-
- -
- - -
`; } @@ -163,125 +133,6 @@ export function getMoreOptionsComponentStyles(): string { .option-desc { display: none; } - - /* 用户反馈二维码弹窗 */ - .feedback-qrcode-modal { - display: none; - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 20000; - align-items: center; - justify-content: center; - } - - .feedback-qrcode-modal.active { - display: flex; - animation: fadeIn 0.2s ease-out; - } - - @keyframes fadeIn { - from { - opacity: 0; - } - to { - opacity: 1; - } - } - - .feedback-qrcode-overlay { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(0, 0, 0, 0.6); - cursor: pointer; - } - - .feedback-qrcode-content { - position: relative; - background: var(--vscode-editor-background); - border: 1px solid var(--vscode-widget-border); - border-radius: 8px; - box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); - max-width: 400px; - width: 90%; - animation: slideUp 0.2s ease-out; - } - - @keyframes slideUp { - from { - opacity: 0; - transform: translateY(20px); - } - to { - opacity: 1; - transform: translateY(0); - } - } - - .feedback-qrcode-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 16px 20px; - border-bottom: 1px solid var(--vscode-widget-border); - } - - .feedback-qrcode-title { - font-size: 14px; - font-weight: 600; - color: var(--vscode-foreground); - } - - .feedback-qrcode-close { - width: 28px; - height: 28px; - padding: 0; - background: transparent; - border: none; - border-radius: 4px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - transition: background 0.15s ease; - } - - .feedback-qrcode-close:hover { - background: var(--vscode-toolbar-hoverBackground); - } - - .feedback-qrcode-close svg { - width: 16px; - height: 16px; - color: var(--vscode-foreground); - } - - .feedback-qrcode-body { - padding: 24px; - display: flex; - flex-direction: column; - align-items: center; - gap: 16px; - } - - .feedback-qrcode-image { - width: 200px; - height: 200px; - border: 1px solid var(--vscode-widget-border); - border-radius: 8px; - } - - .feedback-qrcode-text { - margin: 0; - font-size: 13px; - color: var(--vscode-descriptionForeground); - text-align: center; - } `; } @@ -331,29 +182,6 @@ export function getMoreOptionsComponentScript(): string { closeMoreOptionsDropdown(); } - // 打开用户反馈 - function openUserFeedback() { - console.log('打开用户反馈'); - vscode.postMessage({ command: 'openUserFeedback' }); - closeMoreOptionsDropdown(); - } - - // 显示用户反馈二维码弹窗 - function showFeedbackQRCode() { - const modal = document.getElementById('feedbackQRCodeModal'); - if (modal) { - modal.classList.add('active'); - } - } - - // 关闭用户反馈二维码弹窗 - function closeFeedbackQRCode() { - const modal = document.getElementById('feedbackQRCodeModal'); - if (modal) { - modal.classList.remove('active'); - } - } - // 绑定更多选项事件 document.addEventListener('DOMContentLoaded', () => { // 绑定用户手册选项 @@ -362,12 +190,6 @@ export function getMoreOptionsComponentScript(): string { userManualOption.addEventListener('click', openUserManual); } - // 绑定用户反馈选项 - const userFeedbackOption = document.getElementById('userFeedbackOption'); - if (userFeedbackOption) { - userFeedbackOption.addEventListener('click', openUserFeedback); - } - // 点击页面其他地方关闭下拉面板 document.addEventListener('click', (e) => { const dropdown = document.getElementById('moreOptionsDropdown'); diff --git a/src/views/webviewContent.ts b/src/views/webviewContent.ts index 5e212bc..7000d0b 100644 --- a/src/views/webviewContent.ts +++ b/src/views/webviewContent.ts @@ -488,13 +488,17 @@ export function getWebviewContent( ${getNdtWelcomeModalContent(logoUri)} ${getExpiredModalContent(logoUri)}
-
+
IC Coder + 企业版
-

- The Agentic AI Verilog Coding Platform, - 将芯片设计与验证的效率提升至少20倍! +

+ The Agentic AI Verilog Coding Platform + 将FPGA研发效率提升至少20倍!

+
+

宁德时代专属定制版

+