|
@@ -51,7 +51,14 @@
|
|
|
</svg>
|
|
|
快捷指令
|
|
|
</button>
|
|
|
- <!-- 这里可以添加更多左侧工具按钮 -->
|
|
|
+ <button class="toolbar-button" id="tools-button">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ 常用工具
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<div class="toolbar-right">
|
|
|
<!-- 这里可以添加右侧工具按钮 -->
|
|
@@ -83,6 +90,82 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <!-- 工具箱面板 -->
|
|
|
+ <div class="tools-panel" id="tools-panel">
|
|
|
+ <div class="tools-header">
|
|
|
+ <h3>工具箱</h3>
|
|
|
+ <button class="close-tools">
|
|
|
+ <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="tools-content">
|
|
|
+ <!-- 文本处理工具 -->
|
|
|
+ <div class="tools-section">
|
|
|
+ <h4>文本处理</h4>
|
|
|
+ <div class="tools-grid">
|
|
|
+ <button class="tool-item">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ <span>文本格式化</span>
|
|
|
+ </button>
|
|
|
+ <button class="tool-item">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ <span>摘要生成</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 代码工具 -->
|
|
|
+ <div class="tools-section">
|
|
|
+ <h4>代码工具</h4>
|
|
|
+ <div class="tools-grid">
|
|
|
+ <button class="tool-item">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ <span>代码格式化</span>
|
|
|
+ </button>
|
|
|
+ <button class="tool-item">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ <span>代码注释</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 翻译工具 -->
|
|
|
+ <div class="tools-section">
|
|
|
+ <h4>翻译工具</h4>
|
|
|
+ <div class="tools-grid">
|
|
|
+ <button class="tool-item">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ <span>中英互译</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="input-wrapper">
|
|
|
<textarea
|
|
|
id="chat-input"
|
|
@@ -91,6 +174,15 @@
|
|
|
autofocus
|
|
|
></textarea>
|
|
|
<div class="input-buttons">
|
|
|
+ <button id="upload-button" class="icon-button" title="上传文件">
|
|
|
+ <svg viewBox="0 0 24 24" fill="currentColor">
|
|
|
+ <path
|
|
|
+ d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ </button>
|
|
|
+ <!-- 隐藏的文件输入框 -->
|
|
|
+ <input type="file" id="file-input" style="display: none" multiple />
|
|
|
<button id="send-button" class="icon-button" title="发送">
|
|
|
<svg viewBox="0 0 24 24" width="20" height="20">
|
|
|
<path
|