2.0阶段5调整3: 任务标题去图标;技能改名/删除移至列表卡右侧;详情页顶栏仅留上传,新建文件改为列表下按钮,文件列表白卡+图标+胶囊美化

This commit is contained in:
2026-09-01 22:25:17 +08:00
parent 21e5a5d2cc
commit d645c00dd8
3 changed files with 67 additions and 55 deletions
+6 -20
View File
@@ -16,12 +16,7 @@
<!-- ================= Tab:任务(会话列表) ================= -->
<div id="tab-tasks" class="tab-page hidden">
<div class="header">
<div class="header-left"><div class="brand">
<svg width="24" height="24" viewBox="0 0 24 24" stroke="#fff" fill="none" stroke-width="1.5">
<rect x="3" y="3" width="18" height="18" rx="3"/><line x1="9" y1="9" x2="15" y2="9"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="12" y2="17"/>
</svg>
<h2>Agent 任务台</h2>
</div></div>
<div class="header-left"><h2>Agent 任务台</h2></div>
<div style="display:flex; gap:2px; align-items:center;">
<button class="icon-btn" id="create-session-btn" onclick="ui.openCreate()" title="新建任务">
<svg viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
@@ -39,19 +34,10 @@
</button>
<div class="header-left"><h2 id="skills-title">技能管理</h2></div>
<div class="header-right">
<button class="icon-btn hidden" id="skill-newfile-btn" onclick="skillsUI.newFile()" title="新建文件">
<svg viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="12" x2="12" y2="18"></line><line x1="9" y1="15" x2="15" y2="15"></line></svg>
</button>
<label class="icon-btn hidden" id="skill-upload-btn" title="上传文件">
<input type="file" id="skill-file-input" style="display:none;" onchange="skillsUI.onUpload(event)">
<svg viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>
</label>
<button class="icon-btn hidden" id="skill-rename-btn" onclick="skillsUI.renameSkill()" title="重命名">
<svg viewBox="0 0 24 24"><path d="M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z"></path></svg>
</button>
<button class="icon-btn hidden" id="skill-del-btn" onclick="skillsUI.deleteSkill()" title="删除技能">
<svg viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>
</button>
<button class="icon-btn" id="skill-new-btn" onclick="skillsUI.openCreate()" title="新建技能">
<svg viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</button>
@@ -261,10 +247,10 @@
<div class="toast hidden" id="toast"></div>
<!-- 发版时更新 v 参数,避免移动端浏览器缓存旧 JS -->
<script src="/js/core.js?v=20260901h"></script>
<script src="/js/tasks.js?v=20260901h"></script>
<script src="/js/skills.js?v=20260901h"></script>
<script src="/js/models.js?v=20260901h"></script>
<script src="/js/settings.js?v=20260901h"></script>
<script src="/js/core.js?v=20260901i"></script>
<script src="/js/tasks.js?v=20260901i"></script>
<script src="/js/skills.js?v=20260901i"></script>
<script src="/js/models.js?v=20260901i"></script>
<script src="/js/settings.js?v=20260901i"></script>
</body>
</html>