Skip to content

Commit c3f9a4d

Browse files
author
bunsenstraat
authored
Merge branch 'master' into master
2 parents dd4dbcb + edeaaa3 commit c3f9a4d

File tree

7 files changed

+33
-6
lines changed

7 files changed

+33
-6
lines changed

packages/api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ _Click on the name of the api to get the full documentation._
1717
|Unit Testing |[solidityUnitTesting](./doc/unit-testing.md) |Unit testing library in solidity
1818
|Settings |[settings](./doc/settings.md) |Global settings of the IDE
1919
|Content Import |[contentImport](./doc/content-import.md) |Import files from github, swarm, ipfs, http or https.
20+
|Terminal |[terminal](./doc/terminal.md) |Log to the terminal
2021

packages/api/doc/terminal.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# File System
2+
3+
- Name in Remix: `terminal`
4+
5+
|Type |Name |Description |
6+
|---------|-----------------------|------------|
7+
|_method_ |`log` |Log text to the terminal
8+
9+
## Examples
10+
11+
### Methods
12+
`log`: Get the name of the current file selected.
13+
```typescript
14+
await client.terminal.log({ type: 'info', value: 'I am a string' })
15+
// OR
16+
await client.call('terminal',{ type: 'info', value: 'I am a string' })
17+
```
18+
19+
20+
> Type Definitions can be found [here](../src/lib/terminal/api.ts)

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export interface Profile<T extends Api = any> {
1313
version?: string
1414
kind?: string,
1515
canActivate?: string[]
16+
icon?: string
17+
maintainedBy?: string,
18+
author?: string
19+
repo?: string
20+
authorContact?: string
1621
}
1722

1823
export interface LocationProfile {

0 commit comments

Comments
 (0)