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
67c46bfc
Commit
67c46bfc
authored
Feb 11, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing tests
parent
cfbe3e2f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
38 deletions
+38
-38
app.js
src/app.js
+3
-3
side-panel.js
src/app/components/side-panel.js
+1
-1
vertical-icons.js
src/app/components/vertical-icons.js
+1
-1
file-panel.js
src/app/panels/file-panel.js
+1
-1
terminal.js
src/app/panels/terminal.js
+5
-5
TreeView.js
src/app/ui/TreeView.js
+1
-1
landing-page.js
src/app/ui/landing-page/landing-page.js
+2
-2
homepage.js
test-browser/tests/homepage.js
+24
-24
No files found.
src/app.js
View file @
67c46bfc
...
@@ -141,21 +141,21 @@ class App {
...
@@ -141,21 +141,21 @@ class App {
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
// not resizable
// not resizable
self
.
_view
.
iconpanel
=
yo
`
self
.
_view
.
iconpanel
=
yo
`
<div id="icon-panel" data-id="
icon-p
anel" class="
${
css
.
iconpanel
}
bg-light">
<div id="icon-panel" data-id="
remixIdeIconP
anel" class="
${
css
.
iconpanel
}
bg-light">
${
''
}
${
''
}
</div>
</div>
`
`
// center panel, resizable
// center panel, resizable
self
.
_view
.
sidepanel
=
yo
`
self
.
_view
.
sidepanel
=
yo
`
<div id="side-panel" data-id="
side-p
anel" style="min-width: 320px;" class=
${
css
.
sidepanel
}
>
<div id="side-panel" data-id="
remixIdeSideP
anel" style="min-width: 320px;" class=
${
css
.
sidepanel
}
>
${
''
}
${
''
}
</div>
</div>
`
`
// handle the editor + terminal
// handle the editor + terminal
self
.
_view
.
mainpanel
=
yo
`
self
.
_view
.
mainpanel
=
yo
`
<div id="main-panel" data-id="
main-p
anel" class=
${
css
.
mainpanel
}
>
<div id="main-panel" data-id="
remixIdeMainP
anel" class=
${
css
.
mainpanel
}
>
${
''
}
${
''
}
</div>
</div>
`
`
...
...
src/app/components/side-panel.js
View file @
67c46bfc
...
@@ -132,7 +132,7 @@ export class SidePanel extends AbstractPanel {
...
@@ -132,7 +132,7 @@ export class SidePanel extends AbstractPanel {
return
yo
`
return
yo
`
<header class="
${
css
.
swapitHeader
}
px-3">
<header class="
${
css
.
swapitHeader
}
px-3">
<h6 class="
${
css
.
swapitTitle
}
" data-id="s
wapit
Title">
${
name
}
</h6>
<h6 class="
${
css
.
swapitTitle
}
" data-id="s
idePanelFileExplorer
Title">
${
name
}
</h6>
${
docLink
}
${
docLink
}
${
versionWarning
}
${
versionWarning
}
</header>
</header>
...
...
src/app/components/vertical-icons.js
View file @
67c46bfc
...
@@ -227,7 +227,7 @@ export class VerticalIcons extends Plugin {
...
@@ -227,7 +227,7 @@ export class VerticalIcons extends Plugin {
this
.
appManager
.
ensureActivated
(
'home'
)
this
.
appManager
.
ensureActivated
(
'home'
)
}}
"
}}
"
plugin="
home
" title="
Home
"
plugin="
home
" title="
Home
"
data-id="
h
omeIcon
"
data-id="
iconPanelH
omeIcon
"
>
>
<svg id="
Ebene_2
" data-name="
Ebene
2
" xmlns="
http
:
//www.w3.org/2000/svg" viewBox="0 0 105 100">
<svg id="
Ebene_2
" data-name="
Ebene
2
" xmlns="
http
:
//www.w3.org/2000/svg" viewBox="0 0 105 100">
<
title
>
remix_logo1
<
/title
>
<
title
>
remix_logo1
<
/title
>
...
...
src/app/panels/file-panel.js
View file @
67c46bfc
...
@@ -64,7 +64,7 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -64,7 +64,7 @@ module.exports = class Filepanel extends ViewPlugin {
const
explorers
=
yo
`
const
explorers
=
yo
`
<div>
<div>
<div class=
${
css
.
treeview
}
data-id="
fileExplorerInit
">
${
fileExplorer
.
init
()}
</div>
<div class=
${
css
.
treeview
}
data-id="
sidePanelFileExplorerTree
">
${
fileExplorer
.
init
()}
</div>
<div class="filesystemexplorer
${
css
.
treeview
}
">
${
fileSystemExplorer
.
init
()}
</div>
<div class="filesystemexplorer
${
css
.
treeview
}
">
${
fileSystemExplorer
.
init
()}
</div>
</div>
</div>
`
`
...
...
src/app/panels/terminal.js
View file @
67c46bfc
...
@@ -123,14 +123,14 @@ class Terminal extends Plugin {
...
@@ -123,14 +123,14 @@ class Terminal extends Plugin {
self
.
_view
.
input
.
innerText
=
'
\
n'
self
.
_view
.
input
.
innerText
=
'
\
n'
self
.
_view
.
cli
=
yo
`
self
.
_view
.
cli
=
yo
`
<div id="terminalCli" data-id="
t
erminalCli" class="
${
css
.
cli
}
">
<div id="terminalCli" data-id="
mainPanelT
erminalCli" class="
${
css
.
cli
}
">
<span class=
${
css
.
prompt
}
>
${
'>'
}
</span>
<span class=
${
css
.
prompt
}
>
${
'>'
}
</span>
${
self
.
_view
.
input
}
${
self
.
_view
.
input
}
</div>
</div>
`
`
self
.
_view
.
icon
=
yo
`
self
.
_view
.
icon
=
yo
`
<i onmouseenter=
${
hover
}
onmouseleave=
${
hover
}
onmousedown=
${
minimize
}
<i onmouseenter=
${
hover
}
onmouseleave=
${
hover
}
onmousedown=
${
minimize
}
class="btn btn-secondary btn-sm align-items-center
${
css
.
toggleTerminal
}
fas fa-angle-double-down" data-id="
t
oggleTerminal"></i>`
class="btn btn-secondary btn-sm align-items-center
${
css
.
toggleTerminal
}
fas fa-angle-double-down" data-id="
mainPanelT
oggleTerminal"></i>`
self
.
_view
.
dragbar
=
yo
`
self
.
_view
.
dragbar
=
yo
`
<div onmousedown=
${
mousedown
}
class=
${
css
.
dragbarHorizontal
}
></div>`
<div onmousedown=
${
mousedown
}
class=
${
css
.
dragbarHorizontal
}
></div>`
...
@@ -146,7 +146,7 @@ class Terminal extends Plugin {
...
@@ -146,7 +146,7 @@ class Terminal extends Plugin {
self
.
_view
.
bar
=
yo
`
self
.
_view
.
bar
=
yo
`
<div class="
${
css
.
bar
}
">
<div class="
${
css
.
bar
}
">
${
self
.
_view
.
dragbar
}
${
self
.
_view
.
dragbar
}
<div class="
${
css
.
menu
}
border-top border-dark bg-light" data-id="
t
oggleTerminalMenu">
<div class="
${
css
.
menu
}
border-top border-dark bg-light" data-id="
mainPanelT
oggleTerminalMenu">
${
self
.
_view
.
icon
}
${
self
.
_view
.
icon
}
<div class=
${
css
.
clear
}
id="clearConsole" onclick=
${
clear
}
>
<div class=
${
css
.
clear
}
id="clearConsole" onclick=
${
clear
}
>
<i class="fas fa-ban" aria-hidden="true" title="Clear console"
<i class="fas fa-ban" aria-hidden="true" title="Clear console"
...
@@ -177,9 +177,9 @@ class Terminal extends Plugin {
...
@@ -177,9 +177,9 @@ class Terminal extends Plugin {
</div>
</div>
`
`
self
.
_view
.
term
=
yo
`
self
.
_view
.
term
=
yo
`
<div class="
${
css
.
terminal_container
}
" data-id="
terminal_c
ontainer" onscroll=
${
throttle
(
reattach
,
10
)}
onclick=
${
focusinput
}
>
<div class="
${
css
.
terminal_container
}
" data-id="
mainPanelTerminalC
ontainer" onscroll=
${
throttle
(
reattach
,
10
)}
onclick=
${
focusinput
}
>
${
self
.
_components
.
autoCompletePopup
.
render
()}
${
self
.
_components
.
autoCompletePopup
.
render
()}
<div class="bg-secondary" data-id="
terminalContainerDisplay
" style="
<div class="bg-secondary" data-id="
mainPanelTerminalContainer
" style="
position: absolute;
position: absolute;
height: 100%;
height: 100%;
width: 100%;
width: 100%;
...
...
src/app/ui/TreeView.js
View file @
67c46bfc
...
@@ -91,7 +91,7 @@ class TreeView {
...
@@ -91,7 +91,7 @@ class TreeView {
var
list
=
yo
`<ul key=
${
keyPath
}
class=
${
css
.
ul_tv
}
>
${
children
}
</ul>`
var
list
=
yo
`<ul key=
${
keyPath
}
class=
${
css
.
ul_tv
}
>
${
children
}
</ul>`
list
.
style
.
display
=
'none'
list
.
style
.
display
=
'none'
caret
.
className
=
list
.
style
.
display
===
'none'
?
`fas fa-caret-right caret
${
css
.
caret_tv
}
`
:
`fas fa-caret-down caret
${
css
.
caret_tv
}
`
caret
.
className
=
list
.
style
.
display
===
'none'
?
`fas fa-caret-right caret
${
css
.
caret_tv
}
`
:
`fas fa-caret-down caret
${
css
.
caret_tv
}
`
caret
.
setAttribute
(
'data-id'
,
`
toggle_
${
keyPath
}
`
)
caret
.
setAttribute
(
'data-id'
,
`
sidePanelToggle
${
keyPath
}
`
)
label
.
onclick
=
function
()
{
label
.
onclick
=
function
()
{
self
.
expand
(
keyPath
)
self
.
expand
(
keyPath
)
}
}
...
...
src/app/ui/landing-page/landing-page.js
View file @
67c46bfc
...
@@ -177,7 +177,7 @@ export class LandingPage extends ViewPlugin {
...
@@ -177,7 +177,7 @@ export class LandingPage extends ViewPlugin {
document
.
location
.
reload
()
document
.
location
.
reload
()
}
}
const
img
=
yo
`<img src="assets/img/hexagon-remix-greengrey-texture.png"></img>`
const
img
=
yo
`<img src="assets/img/hexagon-remix-greengrey-texture.png"></img>`
let
container
=
yo
`<div class="
${
css
.
homeContainer
}
bg-light" data-id="
h
omeContainer">
let
container
=
yo
`<div class="
${
css
.
homeContainer
}
bg-light" data-id="
mainPanelH
omeContainer">
<div>
<div>
<div class="alert alert-info clearfix
${
css
.
thisJumboton
}
">
<div class="alert alert-info clearfix
${
css
.
thisJumboton
}
">
<div class="
${
css
.
headlineContainer
}
">
<div class="
${
css
.
headlineContainer
}
">
...
@@ -189,7 +189,7 @@ export class LandingPage extends ViewPlugin {
...
@@ -189,7 +189,7 @@ export class LandingPage extends ViewPlugin {
</div>
</div>
</div><!-- end of jumbotron -->
</div><!-- end of jumbotron -->
</div><!-- end of jumbotron container -->
</div><!-- end of jumbotron container -->
<div class="row
${
css
.
hpSections
}
" data-id="
h
pSections">
<div class="row
${
css
.
hpSections
}
" data-id="
mainPanelH
pSections">
<div id="col1" class="col-sm-7">
<div id="col1" class="col-sm-7">
<div class="mb-5">
<div class="mb-5">
<h4>Environments</h4>
<h4>Environments</h4>
...
...
test-browser/tests/homepage.js
View file @
67c46bfc
...
@@ -7,65 +7,65 @@ module.exports = {
...
@@ -7,65 +7,65 @@ module.exports = {
init
(
browser
,
done
,
'http://127.0.0.1:8080'
,
false
)
init
(
browser
,
done
,
'http://127.0.0.1:8080'
,
false
)
},
},
'Loads Icon
\'
s Panel'
:
function
(
browser
)
{
'Loads Icon
\'
s Panel'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="
icon-p
anel"]'
,
10000
)
browser
.
waitForElementVisible
(
'div[data-id="
remixIdeIconP
anel"]'
,
10000
)
.
waitForElementVisible
(
'div[data-id="
h
omeIcon"]'
)
.
waitForElementVisible
(
'div[data-id="
iconPanelH
omeIcon"]'
)
.
waitForElementVisible
(
'div[plugin="fileExplorers"]'
)
.
waitForElementVisible
(
'div[plugin="fileExplorers"]'
)
.
waitForElementVisible
(
'div[plugin="pluginManager"]'
)
.
waitForElementVisible
(
'div[plugin="pluginManager"]'
)
.
waitForElementVisible
(
'div[plugin="settings"]'
)
.
waitForElementVisible
(
'div[plugin="settings"]'
)
},
},
'Loads Side Panel'
:
function
(
browser
)
{
'Loads Side Panel'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="
side-p
anel"]'
)
browser
.
waitForElementVisible
(
'div[data-id="
remixIdeSideP
anel"]'
)
.
assert
.
containsText
(
'h6[data-id="s
wapit
Title"]'
,
'FILE EXPLORERS'
)
.
assert
.
containsText
(
'h6[data-id="s
idePanelFileExplorer
Title"]'
,
'FILE EXPLORERS'
)
.
waitForElementVisible
(
'div[data-id="
fileExplorerInit
"]'
)
.
waitForElementVisible
(
'div[data-id="
sidePanelFileExplorerTree
"]'
)
.
waitForElementVisible
(
'li[key="browser/4_Ballot_test.sol"]'
)
.
waitForElementVisible
(
'li[key="browser/4_Ballot_test.sol"]'
)
},
},
'Loads Main View'
:
function
(
browser
)
{
'Loads Main View'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="mainPanelPluginsContainer"]'
)
browser
.
waitForElementVisible
(
'div[data-id="mainPanelPluginsContainer"]'
)
.
waitForElementVisible
(
'div[data-id="
h
omeContainer"]'
)
.
waitForElementVisible
(
'div[data-id="
mainPanelH
omeContainer"]'
)
.
waitForElementVisible
(
'div[data-id="
h
pSections"]'
)
.
waitForElementVisible
(
'div[data-id="
mainPanelH
pSections"]'
)
.
waitForElementVisible
(
'div[data-id="
terminalContainerDisplay
"]'
)
.
waitForElementVisible
(
'div[data-id="
mainPanelTerminalContainer
"]'
)
},
},
'Loads terminal'
:
function
(
browser
)
{
'Loads terminal'
:
function
(
browser
)
{
browser
browser
.
waitForElementVisible
(
'div[data-id="
t
erminalCli"]'
,
10000
)
.
waitForElementVisible
(
'div[data-id="
mainPanelT
erminalCli"]'
,
10000
)
.
journalLastChildIncludes
(
'Welcome to Remix'
)
.
journalLastChildIncludes
(
'Welcome to Remix'
)
},
},
'Toggles Side Panel'
:
function
(
browser
)
{
'Toggles Side Panel'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="
side-p
anel"]'
)
browser
.
waitForElementVisible
(
'div[data-id="
remixIdeSideP
anel"]'
)
.
assert
.
containsText
(
'h6[data-id="s
wapit
Title"]'
,
'FILE EXPLORERS'
)
.
assert
.
containsText
(
'h6[data-id="s
idePanelFileExplorer
Title"]'
,
'FILE EXPLORERS'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
assert
.
hidden
(
'div[data-id="
side-p
anel"]'
)
.
assert
.
hidden
(
'div[data-id="
remixIdeSideP
anel"]'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
assert
.
visible
(
'div[data-id="
side-p
anel"]'
)
.
assert
.
visible
(
'div[data-id="
remixIdeSideP
anel"]'
)
.
assert
.
containsText
(
'h6[data-id="s
wapit
Title"]'
,
'FILE EXPLORERS'
)
.
assert
.
containsText
(
'h6[data-id="s
idePanelFileExplorer
Title"]'
,
'FILE EXPLORERS'
)
},
},
'Toggles Terminal'
:
function
(
browser
)
{
'Toggles Terminal'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="
terminal_c
ontainer"]'
)
browser
.
waitForElementVisible
(
'div[data-id="
mainPanelTerminalC
ontainer"]'
)
.
assert
.
visible
(
'div[data-id="
terminalContainerDisplay
"]'
)
.
assert
.
visible
(
'div[data-id="
mainPanelTerminalContainer
"]'
)
.
click
(
'i[data-id="
t
oggleTerminal"]'
)
.
click
(
'i[data-id="
mainPanelT
oggleTerminal"]'
)
.
checkElementStyle
(
'div[data-id="
t
oggleTerminalMenu"]'
,
'height'
,
'35px'
)
.
checkElementStyle
(
'div[data-id="
mainPanelT
oggleTerminalMenu"]'
,
'height'
,
'35px'
)
.
click
(
'i[data-id="
t
oggleTerminal"]'
)
.
click
(
'i[data-id="
mainPanelT
oggleTerminal"]'
)
.
assert
.
visible
(
'div[data-id="
terminalContainerDisplay
"]'
)
.
assert
.
visible
(
'div[data-id="
mainPanelTerminalContainer
"]'
)
},
},
'Toggles File Explorer Browser'
:
function
(
browser
)
{
'Toggles File Explorer Browser'
:
function
(
browser
)
{
browser
browser
.
waitForElementVisible
(
'div[data-id="
fileExplorerInit
"]'
)
.
waitForElementVisible
(
'div[data-id="
sidePanelFileExplorerTree
"]'
)
.
assert
.
visible
(
'ul[key="browser"]'
)
.
assert
.
visible
(
'ul[key="browser"]'
)
.
click
(
'div[data-id="
toggle_
browser"]'
)
.
click
(
'div[data-id="
sidePanelToggle
browser"]'
)
.
assert
.
hidden
(
'ul[key="browser"]'
)
.
assert
.
hidden
(
'ul[key="browser"]'
)
.
click
(
'div[data-id="
toggle_
browser"]'
)
.
click
(
'div[data-id="
sidePanelToggle
browser"]'
)
.
assert
.
visible
(
'ul[key="browser"]'
)
.
assert
.
visible
(
'ul[key="browser"]'
)
},
},
'Switch Tabs using tabs icon'
:
function
(
browser
)
{
'Switch Tabs using tabs icon'
:
function
(
browser
)
{
browser
browser
.
waitForElementVisible
(
'div[data-id="
fileExplorerInit
"]'
)
.
waitForElementVisible
(
'div[data-id="
sidePanelFileExplorerTree
"]'
)
.
switchFile
(
'browser/3_Ballot.sol'
)
.
switchFile
(
'browser/3_Ballot.sol'
)
.
assert
.
containsText
(
'div[title="browser/3_Ballot.sol"]'
,
'3_Ballot.sol'
)
.
assert
.
containsText
(
'div[title="browser/3_Ballot.sol"]'
,
'3_Ballot.sol'
)
.
click
(
'span[class^=dropdownCaret]'
)
.
click
(
'span[class^=dropdownCaret]'
)
...
...
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