mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 23:20:46 +00:00
- 在多个组件中引入 commitVaultGroupMutation 函数 - 更新 useHostTreeInlineGroupActions 钩子以使用新的提交机制 - 修改 vault 组件以传递新的组变更提交函数 - 实现组重命名和删除操作的统一提交逻辑 - 添加相关测试用例验证组变更提交功能 - 更新类型定义以包含新的组变更状态管理接口
14 lines
363 B
TypeScript
14 lines
363 B
TypeScript
import type { GroupConfig, Host, ManagedSource, Snippet } from './models';
|
|
|
|
export type VaultGroupMutationState = {
|
|
groups: string[];
|
|
configs: GroupConfig[];
|
|
hosts: Host[];
|
|
managedSources: ManagedSource[];
|
|
snippets: Snippet[];
|
|
};
|
|
|
|
export type VaultGroupMutationResult =
|
|
| { ok: true; state: VaultGroupMutationState }
|
|
| { ok: false; error: string };
|