优化: 项目文件树/依赖图组件 + 灵感对抗校验 + 小程序脚本 + 模块管理
This commit is contained in:
+4
-1
@@ -36,6 +36,9 @@ export interface FileTreeEntry {
|
||||
size: number
|
||||
/** Git 状态码(`git status --porcelain` 的 XY 两字符,如 " M"/"M "/"??");文件夹恒无 */
|
||||
git_status?: string
|
||||
/** 目录是否含可见子项(过滤隐藏文件/噪音目录后,与展开实际展示一致);文件恒为 false。
|
||||
* 后端列目录时即时统计,前端未展开即可据此行内标注空目录。 */
|
||||
has_children: boolean
|
||||
}
|
||||
|
||||
/** getModuleFileTree 返回结构。 */
|
||||
@@ -177,7 +180,7 @@ export const moduleApi = {
|
||||
},
|
||||
|
||||
/** 分页查询工程 Git 提交历史。返回 { commits, has_more }。 */
|
||||
/** 列出工程本地分支(只读)。返回 { current, branches: [{ name, is_current }] }。 */
|
||||
/** 列出工程分支(本地 + 远程跟踪,只读)。返回 { current, branches: [{ name, is_current }] }。 */
|
||||
listBranches(moduleId: string): Promise<{ current: string; branches: { name: string; is_current: boolean }[] }> {
|
||||
return invoke('list_branches', { moduleId })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user