Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
62bd8fca
Commit
62bd8fca
authored
Nov 30, 2020
by
GrandSchtroumpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ensureActivated
parent
c82b0d5c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
41 deletions
+21
-41
app.js
apps/remix-ide/src/app.js
+1
-2
vertical-icons.js
apps/remix-ide/src/app/components/vertical-icons.js
+1
-3
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+19
-29
remixAppManager.js
apps/remix-ide/src/remixAppManager.js
+0
-7
No files found.
apps/remix-ide/src/app.js
View file @
62bd8fca
...
...
@@ -429,8 +429,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
}).
catch
(
console
.
error
)
}
else
{
// activate solidity plugin
appManager
.
ensureActivated
(
'solidity'
)
appManager
.
ensureActivated
(
'udapp'
)
appManager
.
activatePlugin
([
'solidity'
,
'udapp'
])
}
// Load and start the service who manager layout and frame
...
...
apps/remix-ide/src/app/components/vertical-icons.js
View file @
62bd8fca
...
...
@@ -225,9 +225,7 @@ export class VerticalIcons extends Plugin {
const
home
=
yo
`
<div
class="
${
css
.
homeIcon
}
"
onclick="
${(
e
)
=>
{
this
.
appManager
.
ensureActivated
(
'home'
)
}}
"
onclick="
${(
e
)
=>
this
.
appManager
.
activatePlugin
(
'home'
)}
"
plugin="home" title="Home"
data-id="verticalIconsHomeIcon"
>
...
...
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
62bd8fca
...
...
@@ -240,53 +240,43 @@ export class LandingPage extends ViewPlugin {
})
}
const
startSolidity
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'solidity'
)
this
.
appManager
.
ensureActivated
(
'udapp'
)
this
.
appManager
.
ensureActivated
(
'solidityStaticAnalysis'
)
this
.
appManager
.
ensureActivated
(
'solidityUnitTesting'
)
const
startSolidity
=
async
()
=>
{
await
this
.
appManager
.
activatePlugin
([
'solidity'
,
'udapp'
,
'solidityStaticAnalysis'
,
'solidityUnitTesting'
])
this
.
verticalIcons
.
select
(
'solidity'
)
}
/*
const startWorkshop = () => {
this.appManager.ensureActivated('box')
this.appManager.ensureActivated('solidity')
this.appManager.ensureActivated('solidityUnitTesting')
this.appManager.ensureActivated('workshops')
this.verticalIcons.select('workshops')
}
*/
const
startPipeline
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'solidity'
)
this
.
appManager
.
ensureActivated
(
'pipeline'
)
this
.
appManager
.
ensureActivated
(
'udapp'
)
this
.
appManager
.
activatePlugin
([
'solidity'
,
'pipeline'
,
'udapp'
])
}
const
startDebugger
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'debugger'
)
const
startDebugger
=
async
()
=>
{
await
this
.
appManager
.
activatePlugin
(
'debugger'
)
this
.
verticalIcons
.
select
(
'debugger'
)
}
const
startMythX
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'solidity'
)
this
.
appManager
.
ensureActivated
(
'mythx'
)
const
startMythX
=
async
()
=>
{
await
this
.
appManager
.
activatePlugin
([
'solidity'
,
'mythx'
])
this
.
verticalIcons
.
select
(
'mythx'
)
}
const
startSourceVerify
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'solidity'
)
this
.
appManager
.
ensureActivated
(
'source-verification'
)
const
startSourceVerify
=
async
()
=>
{
await
this
.
appManager
.
activatePlugin
([
'solidity'
,
'source-verification'
])
this
.
verticalIcons
.
select
(
'source-verification'
)
}
const
startPluginManager
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'pluginManager'
)
const
startPluginManager
=
async
()
=>
{
await
this
.
appManager
.
activatePlugin
(
'pluginManager'
)
this
.
verticalIcons
.
select
(
'pluginManager'
)
}
/*
const startWorkshop = async () => {
await this.appManager.activatePlugin(['box', 'solidity', 'solidityUnitTesting', 'workshops'])
this.verticalIcons.select('workshops')
}
*/
const
createNewFile
=
()
=>
{
const
fileExplorer
=
globalRegistry
.
get
(
'fileexplorer/browser'
).
api
fileExplorer
.
createNewFile
()
}
const
connectToLocalhost
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'remixd'
)
this
.
appManager
.
activatePlugin
(
'remixd'
)
}
const
importFromGist
=
()
=>
{
this
.
gistHandler
.
loadFromGist
({
gist
:
''
},
globalRegistry
.
get
(
'filemanager'
).
api
)
...
...
apps/remix-ide/src/remixAppManager.js
View file @
62bd8fca
...
...
@@ -70,13 +70,6 @@ export class RemixAppManager extends PluginManager {
this
.
event
.
emit
(
'deactivate'
,
plugin
)
}
onRegistration
()
{}
async
ensureActivated
(
apiName
)
{
await
this
.
activatePlugin
(
apiName
)
this
.
event
.
emit
(
'ensureActivated'
,
apiName
)
}
async
ensureDeactivated
(
apiName
)
{
await
this
.
deactivatePlugin
(
apiName
)
this
.
event
.
emit
(
'ensureDeactivated'
,
apiName
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment