@civilization/dsh-workspace-files 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/icon.svg +4 -0
- package/lib/client.js +612 -541
- package/lib/client.js.map +1 -1
- package/lib/index.js +15 -1
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +8 -4
- package/src/client/icons.tsx +39 -0
- package/src/client/index.tsx +549 -554
- package/src/files.ts +14 -0
package/README.md
CHANGED
|
@@ -9,6 +9,14 @@ DeepSeek Harness (DSH) 原生增强型文件浏览器插件。
|
|
|
9
9
|
## 产品特性
|
|
10
10
|
|
|
11
11
|
- ⚡ **无感接管官方文件标签页**:基于 DSH 官方 `sidebarRightTabs` 的 `extension` 遮蔽机制(Shadowing),自动顶替官方 `builtin` 文件卡片,右侧栏引导页始终保持只有一张文件卡片,干净整洁。
|
|
12
|
+
- 🚀 **高性能扁平可视树架构 (Flattened Visible Tree Architecture)**:
|
|
13
|
+
- 针对大型工程和成千上万文件的项目进行了底层性能重塑;未展开目录的子节点绝不遍历与生成 DOM,内存消耗降低 90% 以上;
|
|
14
|
+
- 树行组件采用 `React.memo` 定向更新,滚动与展开保持 60/120fps 极限流畅;
|
|
15
|
+
- 搜索引入 React 并发分离机制(`useDeferredValue`),打字即时跟手零粘滞,彻底消灭输入卡顿。
|
|
16
|
+
- 🎨 **UI Motion 设计规范与通透纯白主题**:
|
|
17
|
+
- 彻底移除了浅色模式下灰蒙蒙的输入框底色,升级为纯净白底(`--dsw-alias-fill-base`)搭配科技感微光晕聚焦环;
|
|
18
|
+
- 文件夹指示箭头配置贝塞尔旋转弹簧动画(`cubic-bezier(0.16, 1, 0.3, 1)`);
|
|
19
|
+
- 行级操作按钮组在悬浮时优雅淡入滑入,微交互触感灵敏。
|
|
12
20
|
- 🔍 **智能搜索双视图与智能目录定位**:
|
|
13
21
|
- 搜索结果默认以高效清晰的【扁平匹配列表】呈现(类似 VS Code Quick Open 体验),高亮匹配关键字并展示上级路径面包屑;
|
|
14
22
|
- **点击文件夹**:自动退出搜索、跳回树形视图、一键自动展开该目录及全部祖先父级路径,并平滑居中滚动定位;
|
package/icon.svg
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none">
|
|
2
|
+
<rect x="1" y="1" width="30" height="30" rx="8" fill="#0284C7"/>
|
|
3
|
+
<path d="M6 8.5C6 7.4 6.9 6.5 8 6.5H12C12.6 6.5 13.1 6.8 13.5 7.2L15.3 9H24C25.1 9 26 9.9 26 11V22C26 23.1 25.1 24 24 24H8C6.9 24 6 23.1 6 22V8.5Z" stroke="#FFFFFF" stroke-width="2" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|