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
501434e2
Commit
501434e2
authored
Jun 03, 2020
by
yann300
Committed by
ioedeveloper
Jul 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url parameters: minimizeterminal, minimizesidepanel, focus the last plugin
parent
40ce57f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
app.js
apps/remix-ide/src/app.js
+9
-4
framingService.js
apps/remix-ide/src/framingService.js
+4
-1
No files found.
apps/remix-ide/src/app.js
View file @
501434e2
...
...
@@ -236,7 +236,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// APP_MANAGER
const
appManager
=
new
RemixAppManager
({})
const
workspace
=
appManager
.
pluginLoader
.
get
()
const
pluginLoader
=
appManager
.
pluginLoader
const
workspace
=
pluginLoader
.
get
()
const
engine
=
new
Engine
(
appManager
)
await
engine
.
onload
()
...
...
@@ -399,6 +400,9 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
await
appManager
.
activatePlugin
([
'mainPanel'
,
'menuicons'
])
await
appManager
.
activatePlugin
([
'home'
,
'sidePanel'
,
'hiddenPanel'
,
'pluginManager'
,
'fileExplorers'
,
'settings'
,
'contextualListener'
,
'scriptRunner'
,
'terminal'
,
'fetchAndCompile'
])
const
queryParams
=
new
QueryParams
()
const
params
=
queryParams
.
get
()
// Set workspace after initial activation
if
(
Array
.
isArray
(
workspace
))
{
await
appManager
.
activatePlugin
(
workspace
)
...
...
@@ -410,15 +414,16 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// Load and start the service who manager layout and frame
const
framingService
=
new
FramingService
(
sidePanel
,
menuicons
,
mainview
,
this
.
_components
.
resizeFeature
)
framingService
.
start
()
framingService
.
start
(
params
)
// If plugins are loaded from the URL params, we focus on the last one.
if
(
pluginLoader
.
current
===
'queryParams'
&&
Array
.
isArray
(
workspace
)
&&
workspace
.
length
>
0
)
menuicons
.
select
(
workspace
[
workspace
.
length
-
1
])
// get the file list from the parent iframe
loadFileFromParent
(
fileManager
)
// get the file from gist
const
gistHandler
=
new
GistHandler
()
const
queryParams
=
new
QueryParams
()
const
params
=
queryParams
.
get
()
const
loadedFromGist
=
gistHandler
.
loadFromGist
(
params
,
fileManager
)
if
(
!
loadedFromGist
)
{
// insert example contracts if there are no files to show
...
...
apps/remix-ide/src/framingService.js
View file @
501434e2
...
...
@@ -8,7 +8,7 @@ export class FramingService {
this
.
resizeFeature
=
resizeFeature
}
start
()
{
start
(
params
)
{
this
.
sidePanel
.
events
.
on
(
'toggle'
,
()
=>
{
this
.
resizeFeature
.
panel
.
clientWidth
!==
0
?
this
.
resizeFeature
.
hidePanel
()
:
this
.
resizeFeature
.
showPanel
()
})
...
...
@@ -33,6 +33,9 @@ export class FramingService {
e
.
preventDefault
()
}
})
if
(
params
.
minimizeterminal
)
this
.
mainView
.
minimizeTerminal
()
if
(
params
.
minimizesidepanel
)
this
.
resizeFeature
.
hidePanel
()
}
embed
()
{
...
...
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