refactor: Prettier 格式化全量前端、Library 服务端分页筛选、Agent 工具输出可视化与 .agent 目录统一
代码质量:
- 新增 .prettierrc + eslint-plugin-prettier,全量格式化所有 TSX/TS/CSS 文件
- npm scripts 新增 format / format:check / lint:fix
Logo 重设计:
- SVG logo 从简单星月改为望远镜+轨道+三角架+星光,favicon 同步更新
Library 服务端分页与多维筛选:
- LibraryQueryParams 支持 q(全局搜索)/status(下载状态)/doctype/author/year/journal/sort_by
- API 返回 {items, total},默认每页 12 条
- 前端新增筛选面板:搜索栏、状态下拉、文献类型、排序、分页控件
Agent 工具输出可视化:
- 新增 SpecialToolRenderers.tsx:query_target 天体参数卡片(含 SIMBAD/VizieR 链接)、search_papers
文献列表(内嵌下载/阅读/星系跳转按钮)
- 系统内部工具(compress_context 等)无错误时自动隐藏,减少时间线噪音
- ToolCallCard 与 Reader/Citation 打通:可在工具输出中直接打开文献或跳转引用星系
.agent 目录统一:
- memory/tool-results/trajectories/images 全部归入 library/.agent/ 子目录
PDF 加载修复:
- BilingualViewer 改用 fetch → blob:// URL 加载 PDF,绕过 iframe SameSite Cookie 限制
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="512" height="512" fill="none">
|
||||
<!-- Transparent Background (rect removed) -->
|
||||
|
||||
<!-- Outer Orbit Ring (Light Blue) -->
|
||||
<circle
|
||||
cx="24"
|
||||
cy="24"
|
||||
r="21.5"
|
||||
stroke="#38bdf8"
|
||||
stroke-width="1.2"
|
||||
stroke-opacity="0.6"
|
||||
stroke-dasharray="2 2"
|
||||
/>
|
||||
|
||||
<!-- Secondary Ellipse Orbit (Light Blue, tilted along top-left to bottom-right diagonal) -->
|
||||
<ellipse
|
||||
cx="24"
|
||||
cy="24"
|
||||
rx="21"
|
||||
ry="8.5"
|
||||
transform="rotate(36 24 24)"
|
||||
stroke="#38bdf8"
|
||||
stroke-width="1.2"
|
||||
stroke-opacity="0.5"
|
||||
/>
|
||||
|
||||
<!-- Main Ellipse Orbit (Brand Sky Blue, tilted along bottom-left to top-right diagonal, major axis slightly larger than outer circle diameter) -->
|
||||
<ellipse
|
||||
cx="24"
|
||||
cy="24"
|
||||
rx="23.5"
|
||||
ry="9.5"
|
||||
transform="rotate(-36 24 24)"
|
||||
stroke="#0284c7"
|
||||
stroke-width="2"
|
||||
/>
|
||||
|
||||
<!-- 4-pointed Sparkle Star with Glow (using Brand Gradient) -->
|
||||
<path
|
||||
d="M34 9.5 Q34 15 39.5 15 Q34 15 34 20.5 Q34 15 28.5 15 Q34 15 34 9.5 Z"
|
||||
fill="url(#starGrad)"
|
||||
filter="url(#logoGlow)"
|
||||
/>
|
||||
|
||||
<!-- Telescope Group (Brand Sky Blue, rotated -36 deg to match the main ellipse) -->
|
||||
<g transform="rotate(-36 24 23)" fill="#0284c7">
|
||||
<!-- Main Tube -->
|
||||
<rect x="15" y="20.5" width="14" height="5" rx="0.5" />
|
||||
<!-- Objective Lens Cap -->
|
||||
<rect x="29" y="19" width="3.2" height="8" rx="0.6" />
|
||||
<!-- Eyepiece Base -->
|
||||
<rect x="12" y="21.5" width="3" height="3" />
|
||||
<!-- Eyepiece Cup -->
|
||||
<rect x="10" y="22" width="2" height="2" rx="0.3" />
|
||||
<!-- Focus Knob -->
|
||||
<circle cx="13.5" cy="19.8" r="0.8" />
|
||||
</g>
|
||||
|
||||
<!-- Tripod Mount & Legs (Brand Sky Blue) -->
|
||||
<g stroke="#0284c7" stroke-width="1.8" stroke-linecap="round">
|
||||
<!-- Mount Joint -->
|
||||
<circle cx="24" cy="25.5" r="0.6" fill="#0284c7" stroke-width="0" />
|
||||
<!-- Legs -->
|
||||
<line x1="24" y1="25.5" x2="20.5" y2="35.5" />
|
||||
<line x1="24" y1="25.5" x2="24" y2="37.5" />
|
||||
<line x1="24" y1="25.5" x2="27.5" y2="35.5" />
|
||||
</g>
|
||||
|
||||
<defs>
|
||||
<!-- Glow filter for the star -->
|
||||
<filter id="logoGlow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feGaussianBlur stdDeviation="0.8" result="blur" />
|
||||
<feComposite in="SourceGraphic" in2="blur" operator="over" />
|
||||
</filter>
|
||||
<linearGradient
|
||||
id="starGrad"
|
||||
x1="28.5"
|
||||
y1="9.5"
|
||||
x2="39.5"
|
||||
y2="20.5"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
>
|
||||
<stop offset="0%" stop-color="#38bdf8" />
|
||||
<stop offset="100%" stop-color="#0284c7" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
Reference in New Issue
Block a user