123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <title>派维斯智能体助手</title>
- <link rel="stylesheet" href="css/sidebar.css" />
- <link rel="stylesheet" href="css/chat.css" />
- </head>
- <body>
- <div class="sidebar-header">
- <h1>派维斯智能体助手</h1>
- <button id="close-sidebar" class="close-btn">×</button>
- </div>
- <div class="chat-container">
- <!-- 聊天消息区域 -->
- <div class="chat-messages" id="chat-messages">
- <!-- 欢迎消息 -->
- <div class="message assistant">
- <div class="message-content">
- <p>你好!我是派维斯智能助手。</p>
- <p>使用说明:</p>
- <ul>
- <li>直接发送消息开始对话</li>
- <li>使用快捷指令快速操作</li>
- <li>可选:输入 /setapi YOUR_API_KEY 设置自定义API密钥</li>
- </ul>
- </div>
- </div>
- </div>
- <!-- 输入区域 -->
- <div class="page-info-card">
- <img class="page-favicon" src="" alt="网站图标" />
- <div class="page-title-container">
- <p class="page-title"></p>
- </div>
- <button class="summarize-button">总结</button>
- </div>
- <div class="chat-input-container">
- <!-- 工具栏 -->
- <div class="toolbar">
- <div class="toolbar-left">
- <button class="toolbar-button" id="prompt-button">
- <svg viewBox="0 0 24 24" fill="currentColor">
- <path
- d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"
- />
- <path d="M7 12h2v5H7zm4-3h2v8h-2zm4-3h2v11h-2z" />
- </svg>
- 快捷指令
- </button>
- <!-- 这里可以添加更多左侧工具按钮 -->
- </div>
- <div class="toolbar-right">
- <!-- 这里可以添加右侧工具按钮 -->
- </div>
- </div>
- <!-- 快捷指令面板 -->
- <div class="prompt-panel" id="prompt-panel">
- <div class="prompt-header">
- <h3>快捷指令</h3>
- <button class="close-prompt">
- <svg viewBox="0 0 24 24" fill="currentColor">
- <path
- d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
- />
- </svg>
- </button>
- </div>
- <div class="prompt-list">
- <button class="prompt-item">
- <svg viewBox="0 0 24 24" fill="currentColor">
- <path
- d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"
- />
- </svg>
- 分析当前页面的主要观点和论据
- </button>
- <!-- 添加更多快捷指令 -->
- </div>
- </div>
- <div class="input-wrapper">
- <textarea
- id="chat-input"
- placeholder="输入消息..."
- rows="1"
- autofocus
- ></textarea>
- <div class="input-buttons">
- <button id="send-button" class="icon-button" title="发送">
- <svg viewBox="0 0 24 24" width="20" height="20">
- <path
- fill="currentColor"
- d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"
- />
- </svg>
- </button>
- </div>
- </div>
- </div>
- </div>
- <script src="js/config.js"></script>
- <script src="js/utils.js"></script>
- <script src="js/ai-service.js"></script>
- <script src="js/chat-ui.js"></script>
- <script src="js/sidebar.js"></script>
- </body>
- </html>
|