forked from XinFinOrg/XDCremix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
175 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
export class Workspace { | ||
constructor (title, description, activate, deactivate) { | ||
constructor (title, description, isMain, activate, deactivate) { | ||
this.title = title | ||
this.description = description | ||
this.isMain = isMain | ||
this.activate = activate | ||
this.deactivate = deactivate | ||
} | ||
} | ||
|
||
export const defaultWorkspaces = (appManager) => { | ||
return [ | ||
new Workspace('Solidity', '', () => { | ||
appManager.ensureActivated('solidity') | ||
appManager.ensureActivated('run') | ||
appManager.ensureActivated('solidityStaticAnalysis') | ||
appManager.ensureActivated('solidityUnitTesting') | ||
}, () => {}), | ||
new Workspace('Vyper', '', () => { | ||
appManager.ensureActivated('vyper') | ||
appManager.ensureActivated('run') | ||
new Workspace( | ||
'Solidity', | ||
'Writing smart contracts. It is used for implementing smart contracts on various blockchain platforms', | ||
true, | ||
() => { | ||
appManager.ensureActivated('solidity') | ||
appManager.ensureActivated('run') | ||
appManager.ensureActivated('solidityStaticAnalysis') | ||
appManager.ensureActivated('solidityUnitTesting') | ||
}, () => {}), | ||
new Workspace( | ||
'Vyper', | ||
'Vyper is a contract-oriented, pythonic programming language that targets the Ethereum Virtual Machine (EVM)', | ||
true, | ||
() => { | ||
appManager.ensureActivated('vyper') | ||
appManager.ensureActivated('run') | ||
}, () => {}), | ||
new Workspace('Debugger', 'Debug transactions with remix', false, () => { | ||
appManager.ensureActivated('debugger') | ||
}, () => {}), | ||
new Workspace('Pipeline', '', () => { | ||
new Workspace('Pipeline', '', false, () => { | ||
appManager.ensureActivated('solidity') | ||
appManager.ensureActivated('run') | ||
appManager.ensureActivated('pipeline') | ||
}, () => {}), | ||
new Workspace('Debugger', '', () => { | ||
appManager.ensureActivated('debugger') | ||
}, () => {}) | ||
appManager.ensureActivated('run') | ||
}) | ||
] | ||
} |