Skip to content

Commit 014a524

Browse files
authored
Merge pull request #387 from ethereum/updateprofile3
update profile
2 parents 08e2d0b + c88cea6 commit 014a524

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

packages/api/src/lib/file-system/file-manager/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export interface IFileSystem {
66
currentFileChanged: (file: string) => void
77
fileSaved: (file: string) => void
88
fileAdded: (file: string) => void
9+
folderAdded: (file: string) => void
910
fileRemoved: (file: string) => void
1011
fileClosed: (file: string) => void
1112
noFileSelected: ()=> void

packages/api/src/lib/file-system/file-manager/profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export const filSystemProfile: Profile<IFileSystem> & LocationProfile = {
2626
"closeFile",
2727
"remove",
2828
],
29-
events: ['currentFileChanged', 'fileAdded', 'fileClosed', 'fileRemoved', 'fileRenamed', 'fileSaved', 'noFileSelected']
29+
events: ['currentFileChanged', 'fileAdded', 'fileClosed', 'fileRemoved', 'fileRenamed', 'fileSaved', 'noFileSelected', 'folderAdded']
3030
};

packages/api/src/lib/file-system/file-panel/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { customAction } from './type';
33
export interface IFilePanel {
44
events: {
55
setWorkspace: (workspace:any) => void
6-
renameWorkspace: (workspace:any) => void
7-
deleteWorkspace: (workspace:any) => void
8-
createWorkspace: (workspace:any) => void
6+
workspaceRenamed: (workspace:any) => void
7+
workspaceDeleted: (workspace:any) => void
8+
workspaceCreated: (workspace:any) => void
99
customAction: (cmd: customAction) => void
1010
} & StatusEvents
1111
methods: {

packages/api/src/lib/file-system/file-panel/profile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export const filePanelProfile: Profile<IFilePanel> & LocationProfile = {
88
location: "sidePanel",
99
documentation: "",
1010
version: "0.0.1",
11-
methods: ['getCurrentWorkspace', 'getWorkspaces', 'createWorkspace', 'renameWorkspace', 'registerContextMenuItem'],
12-
events: ['setWorkspace', 'renameWorkspace', 'deleteWorkspace', 'createWorkspace', 'customAction']
11+
methods: ['getCurrentWorkspace', 'getWorkspaces', 'createWorkspace', 'registerContextMenuItem', 'renameWorkspace'],
12+
events: ['setWorkspace', 'workspaceRenamed', 'workspaceDeleted', 'workspaceCreated'],
1313
};

packages/utils/src/lib/types/profile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export interface Profile<T extends Api = any> {
1212
documentation?: string
1313
version?: string
1414
kind?: string,
15-
canActivate?: string[]
15+
canActivate?: string[],
16+
icon?: string
1617
}
1718

1819
export interface LocationProfile {

0 commit comments

Comments
 (0)