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
5422e98c
Commit
5422e98c
authored
May 13, 2019
by
Grandschtroumpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create an hidden panel component
parent
c08397f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
3 deletions
+28
-3
app.js
src/app.js
+3
-0
hidden-panel.js
src/app/components/hidden-panel.js
+23
-0
local-plugin.js
src/app/components/local-plugin.js
+1
-1
swap-panel.js
src/app/components/swap-panel.js
+1
-2
No files found.
src/app.js
View file @
5422e98c
...
...
@@ -51,6 +51,7 @@ import { ThemeModule } from './app/tabs/theme-module'
import
{
NetworkModule
}
from
'./app/tabs/network-module'
import
{
SwapPanel
}
from
'./app/components/swap-panel'
import
{
MainPanel
}
from
'./app/components/main-panel'
import
{
HiddenPanel
}
from
'./app/components/hidden-panel'
import
{
VerticalIcons
}
from
'./app/components/vertical-icons'
var
css
=
csjs
`
...
...
@@ -344,6 +345,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
swapPanel
=
new
SwapPanel
(
appStore
)
const
mainPanel
=
new
MainPanel
(
appStore
)
const
hiddenPanel
=
new
HiddenPanel
(
appStore
)
// ----------------- main view ----------------------
self
.
_components
.
mainview
=
new
MainView
(
appStore
,
appManager
,
mainPanel
)
...
...
@@ -376,6 +378,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
self
.
_view
.
mainpanel
.
appendChild
(
self
.
_components
.
mainview
.
render
())
self
.
_view
.
iconpanel
.
appendChild
(
verticalIcons
.
render
())
self
.
_view
.
swappanel
.
appendChild
(
swapPanel
.
render
())
document
.
body
.
appendChild
(
hiddenPanel
.
render
())
// Hidden Panel is display none, it can be directly on body
let
filePanel
=
new
FilePanel
()
registry
.
put
({
api
:
filePanel
,
name
:
'filepanel'
})
...
...
src/app/components/hidden-panel.js
0 → 100644
View file @
5422e98c
import
{
AbstractPanel
}
from
'./panel'
const
csjs
=
require
(
'csjs-inject'
)
const
yo
=
require
(
'yo-yo'
)
const
css
=
csjs
`
.pluginsContainer {
display: none;
}
`
export
class
HiddenPanel
extends
AbstractPanel
{
constructor
(
appStore
)
{
super
(
'hiddenPanel'
,
appStore
)
}
render
()
{
return
yo
`
<div class=
${
css
.
pluginsContainer
}
>
${
this
.
view
}
</div>`
}
}
src/app/components/local-plugin.js
View file @
5422e98c
...
...
@@ -164,7 +164,7 @@ module.exports = class LocalPlugin {
<label for="loc2"><input type="radio" name="location" onclick="
${
e
=>
this
.
updateLoc
(
e
)}
" value="mainPanel" id="loc2" >Main Panel</label>
</div>
<div class="radio">
<label for="loc3"><input type="radio" name="location" onclick="
${
e
=>
this
.
updateLoc
(
e
)}
" value="
none
" id="loc3" >None</label>
<label for="loc3"><input type="radio" name="location" onclick="
${
e
=>
this
.
updateLoc
(
e
)}
" value="
hiddenPanel
" id="loc3" >None</label>
</div>
</form>`
}
...
...
src/app/components/swap-panel.js
View file @
5422e98c
...
...
@@ -31,8 +31,7 @@ const css = csjs`
`
const
options
=
{
default
:
true
,
displayHeader
:
true
default
:
true
}
export
class
SwapPanel
extends
AbstractPanel
{
...
...
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