mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-06 07:21:40 +08:00
设置页新增「显示被忽略的目录」开关(默认关)。打开后 build / dist / out / node_modules 等被内置清单隐藏的目录出现在文件树里,两个宿主(doc 模式侧栏与 RSB 文件浏览器)共用标题行同一组件。 - ignoreNames 拆到 @cindy/file-browser-core 单源(renderer 经 shared 转发) - listDir / startWatch 带 showIgnoredDirs,开关切换即换 matcher 重建 watcher(本地 / SSH 远端 / device-link 被控端同语义) - remote-file-service bundle 0.2.6:daemon 端 listDir/watcher 支持开关 - device-link 三态能力探测(true/false/null):老被控端开关置灰并说明原因, 瞬态失败不定论、重连代次失效重探;只缓存肯定结论 - 展开态按开关分片持久化:两态可见集合不同,混用会把巨大隐藏目录当已展开 - 切开关继承兄弟 store 的可见树,不闪 initialLoading 空白;seed 收尾剪枝 豁免本 scope 持久展开位(评审修复) - 标题行动作按钮统一为 FileTreeHeaderActions(pill 档 + 焦点环 + aria/Tip 同源),两宿主不再各画一份 - i18n 五语言 从 #4398 按维护者要求拆出(原 PR 捆绑的「虚拟滚动 + 滚动位置恢复」留在 #4398)。评审历史与变异验证见 #4398 正文。 验证:file-browser-core 43 / remote-file-service 38 / main file-browser + renderer 相关 324 用例全过;desktop typecheck 0 错误;check:test-hygiene PASS;design-inventory 重算。 Signed-off-by: Zhang Yunjin <zhangyunjin@zju.edu.cn>
35 lines
895 B
JSON
35 lines
895 B
JSON
{
|
|
"name": "@cindy/file-browser-core",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "xdt-maker file-browser core: workdir scanner, ignore matcher, ripgrep list/search — shared by desktop main (local backend) and the remote file-service daemon",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./textFileExts": "./src/textFileExts.ts",
|
|
"./ignoreNames": "./src/ignoreNames.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "eslint src/"
|
|
},
|
|
"author": {
|
|
"name": "XD Inc.",
|
|
"email": "feedback@cindy.app"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"ignore": "^7.0.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.0.0",
|
|
"eslint": "^9.0.0",
|
|
"typescript": "^5.7.0",
|
|
"typescript-eslint": "^8.0.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|