Compare commits

..

No commits in common. "v0.1.0-alpha.8" and "main" have entirely different histories.

3 changed files with 148 additions and 226 deletions

View File

@ -46,8 +46,6 @@ 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>;
@ -88,8 +86,6 @@ 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>;
@ -176,12 +172,8 @@ 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,10 +74,6 @@ 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']();
} }
@ -158,10 +154,6 @@ 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);
} }
@ -334,18 +326,10 @@ 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);
} }

View File

@ -1,19 +1,5 @@
export namespace api { export namespace api {
export class FlatWorkspaceTree {
pluginId: string;
component: string;
static createFrom(source: any = {}) {
return new FlatWorkspaceTree(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.pluginId = source["pluginId"];
this.component = source["component"];
}
}
export class FlatContextMenuEntry { export class FlatContextMenuEntry {
pluginId: string; pluginId: string;
id: string; id: string;
@ -272,7 +258,6 @@ export namespace api {
fileActions: FlatAction[]; fileActions: FlatAction[];
noteActions: FlatAction[]; noteActions: FlatAction[];
contextMenuEntries: FlatContextMenuEntry[]; contextMenuEntries: FlatContextMenuEntry[];
workspaceTree?: FlatWorkspaceTree;
static createFrom(source: any = {}) { static createFrom(source: any = {}) {
return new ContributionSummary(source); return new ContributionSummary(source);
@ -291,7 +276,6 @@ export namespace api {
this.fileActions = this.convertValues(source["fileActions"], FlatAction); this.fileActions = this.convertValues(source["fileActions"], FlatAction);
this.noteActions = this.convertValues(source["noteActions"], FlatAction); this.noteActions = this.convertValues(source["noteActions"], FlatAction);
this.contextMenuEntries = this.convertValues(source["contextMenuEntries"], FlatContextMenuEntry); this.contextMenuEntries = this.convertValues(source["contextMenuEntries"], FlatContextMenuEntry);
this.workspaceTree = this.convertValues(source["workspaceTree"], FlatWorkspaceTree);
} }
convertValues(a: any, classs: any, asMap: boolean = false): any { convertValues(a: any, classs: any, asMap: boolean = false): any {
@ -323,7 +307,6 @@ export namespace api {
export class SyncStatusDTO { export class SyncStatusDTO {
configured: boolean; configured: boolean;
serverUrl: string; serverUrl: string;
@ -897,18 +880,6 @@ export namespace plugin {
this.component = source["component"]; this.component = source["component"];
} }
} }
export class ContributionWorkspaceTree {
component: string;
static createFrom(source: any = {}) {
return new ContributionWorkspaceTree(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.component = source["component"];
}
}
export class Contributions { export class Contributions {
views?: ContributionView[]; views?: ContributionView[];
commands?: ContributionCommand[]; commands?: ContributionCommand[];
@ -922,7 +893,6 @@ export namespace plugin {
statusBarItems?: ContributionStatusBarItem[]; statusBarItems?: ContributionStatusBarItem[];
openProviders?: ContributionOpenProvider[]; openProviders?: ContributionOpenProvider[];
workspaceItems?: ContributionWorkspaceItem[]; workspaceItems?: ContributionWorkspaceItem[];
workspaceTree?: ContributionWorkspaceTree;
static createFrom(source: any = {}) { static createFrom(source: any = {}) {
return new Contributions(source); return new Contributions(source);
@ -942,7 +912,6 @@ export namespace plugin {
this.statusBarItems = this.convertValues(source["statusBarItems"], ContributionStatusBarItem); this.statusBarItems = this.convertValues(source["statusBarItems"], ContributionStatusBarItem);
this.openProviders = this.convertValues(source["openProviders"], ContributionOpenProvider); this.openProviders = this.convertValues(source["openProviders"], ContributionOpenProvider);
this.workspaceItems = this.convertValues(source["workspaceItems"], ContributionWorkspaceItem); this.workspaceItems = this.convertValues(source["workspaceItems"], ContributionWorkspaceItem);
this.workspaceTree = this.convertValues(source["workspaceTree"], ContributionWorkspaceTree);
} }
convertValues(a: any, classs: any, asMap: boolean = false): any { convertValues(a: any, classs: any, asMap: boolean = false): any {
@ -1288,24 +1257,6 @@ export namespace workbench {
export namespace workspace { export namespace workspace {
export class FolderMetadata {
icon?: string;
color?: string;
order?: number;
updatedAt?: string;
static createFrom(source: any = {}) {
return new FolderMetadata(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.icon = source["icon"];
this.color = source["color"];
this.order = source["order"];
this.updatedAt = source["updatedAt"];
}
}
export class TemplateSnapshot { export class TemplateSnapshot {
templateId: string; templateId: string;
templateName: string; templateName: string;
@ -1329,7 +1280,6 @@ export namespace workspace {
export class Metadata { export class Metadata {
workspaceId?: string; workspaceId?: string;
workspaceName: string; workspaceName: string;
workspacePath?: string;
createdFromTemplate?: TemplateSnapshot; createdFromTemplate?: TemplateSnapshot;
features?: Record<string, boolean>; features?: Record<string, boolean>;
folders?: Record<string, string>; folders?: Record<string, string>;
@ -1344,7 +1294,6 @@ export namespace workspace {
if ('string' === typeof source) source = JSON.parse(source); if ('string' === typeof source) source = JSON.parse(source);
this.workspaceId = source["workspaceId"]; this.workspaceId = source["workspaceId"];
this.workspaceName = source["workspaceName"]; this.workspaceName = source["workspaceName"];
this.workspacePath = source["workspacePath"];
this.createdFromTemplate = this.convertValues(source["createdFromTemplate"], TemplateSnapshot); this.createdFromTemplate = this.convertValues(source["createdFromTemplate"], TemplateSnapshot);
this.features = source["features"]; this.features = source["features"];
this.folders = source["folders"]; this.folders = source["folders"];
@ -1408,7 +1357,6 @@ export namespace workspace {
export class Workspace { export class Workspace {
id: string; id: string;
name: string; name: string;
path: string;
rootPath: string; rootPath: string;
static createFrom(source: any = {}) { static createFrom(source: any = {}) {
@ -1419,7 +1367,6 @@ export namespace workspace {
if ('string' === typeof source) source = JSON.parse(source); if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"]; this.id = source["id"];
this.name = source["name"]; this.name = source["name"];
this.path = source["path"];
this.rootPath = source["rootPath"]; this.rootPath = source["rootPath"];
} }
} }
@ -1461,4 +1408,3 @@ export namespace workspace {
} }
} }