Обновлены Wails биндинги: MoveWorkspace, GetFolderMetadata, SetFolderMetadata

This commit is contained in:
mirivlad 2026-07-18 19:04:47 +08:00
parent 3bf67fb1e9
commit 29c55c50b2
3 changed files with 226 additions and 148 deletions

View File

@ -46,6 +46,8 @@ export function GetCurrentWorkspace():Promise<Record<string, any>>;
export function GetCurrentWorkspaceNode():Promise<Record<string, any>>; export function GetCurrentWorkspaceNode():Promise<Record<string, any>>;
export function GetFolderMetadata(arg1:string):Promise<workspace.FolderMetadata|string>;
export function GetPermissions():Promise<Array<permissions.Entry>>; export function GetPermissions():Promise<Array<permissions.Entry>>;
export function GetPluginAssetContent(arg1:string,arg2:string):Promise<string|string>; export function GetPluginAssetContent(arg1:string,arg2:string):Promise<string|string>;
@ -86,6 +88,8 @@ export function ListWorkspaces():Promise<Array<workspace.Workspace>|string>;
export function MoveVaultPath(arg1:string,arg2:string,arg3:string,arg4:files.MoveOptions):Promise<string>; export function MoveVaultPath(arg1:string,arg2:string,arg3:string,arg4:files.MoveOptions):Promise<string>;
export function MoveWorkspace(arg1:string,arg2:string):Promise<string>;
export function MoveWorkspaceNode(arg1:string,arg2:string):Promise<string>; export function MoveWorkspaceNode(arg1:string,arg2:string):Promise<string>;
export function OpenExternalURL(arg1:string,arg2:string):Promise<string>; export function OpenExternalURL(arg1:string,arg2:string):Promise<string>;
@ -172,8 +176,12 @@ export function SetCurrentWorkspace(arg1:string):Promise<string>;
export function SetCurrentWorkspaceNode(arg1:string):Promise<string>; export function SetCurrentWorkspaceNode(arg1:string):Promise<string>;
export function SetFolderMetadata(arg1:string,arg2:workspace.FolderMetadata):Promise<string>;
export function SetNotificationService(arg1:api.notificationService):Promise<void>; export function SetNotificationService(arg1:api.notificationService):Promise<void>;
export function SetTrayReady(arg1:boolean):Promise<void>;
export function ShowVaultPathInFolder(arg1:string,arg2:string):Promise<string>; export function ShowVaultPathInFolder(arg1:string,arg2:string):Promise<string>;
export function ShowWindow():Promise<void>; export function ShowWindow():Promise<void>;

View File

@ -74,6 +74,10 @@ export function GetCurrentWorkspaceNode() {
return window['go']['api']['App']['GetCurrentWorkspaceNode'](); return window['go']['api']['App']['GetCurrentWorkspaceNode']();
} }
export function GetFolderMetadata(arg1) {
return window['go']['api']['App']['GetFolderMetadata'](arg1);
}
export function GetPermissions() { export function GetPermissions() {
return window['go']['api']['App']['GetPermissions'](); return window['go']['api']['App']['GetPermissions']();
} }
@ -154,6 +158,10 @@ export function MoveVaultPath(arg1, arg2, arg3, arg4) {
return window['go']['api']['App']['MoveVaultPath'](arg1, arg2, arg3, arg4); return window['go']['api']['App']['MoveVaultPath'](arg1, arg2, arg3, arg4);
} }
export function MoveWorkspace(arg1, arg2) {
return window['go']['api']['App']['MoveWorkspace'](arg1, arg2);
}
export function MoveWorkspaceNode(arg1, arg2) { export function MoveWorkspaceNode(arg1, arg2) {
return window['go']['api']['App']['MoveWorkspaceNode'](arg1, arg2); return window['go']['api']['App']['MoveWorkspaceNode'](arg1, arg2);
} }
@ -326,10 +334,18 @@ export function SetCurrentWorkspaceNode(arg1) {
return window['go']['api']['App']['SetCurrentWorkspaceNode'](arg1); return window['go']['api']['App']['SetCurrentWorkspaceNode'](arg1);
} }
export function SetFolderMetadata(arg1, arg2) {
return window['go']['api']['App']['SetFolderMetadata'](arg1, arg2);
}
export function SetNotificationService(arg1) { export function SetNotificationService(arg1) {
return window['go']['api']['App']['SetNotificationService'](arg1); return window['go']['api']['App']['SetNotificationService'](arg1);
} }
export function SetTrayReady(arg1) {
return window['go']['api']['App']['SetTrayReady'](arg1);
}
export function ShowVaultPathInFolder(arg1, arg2) { export function ShowVaultPathInFolder(arg1, arg2) {
return window['go']['api']['App']['ShowVaultPathInFolder'](arg1, arg2); return window['go']['api']['App']['ShowVaultPathInFolder'](arg1, arg2);
} }

File diff suppressed because it is too large Load Diff