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
bc3f5337
Unverified
Commit
bc3f5337
authored
Jul 05, 2018
by
yann300
Committed by
GitHub
Jul 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1374 from ethereum/fixCurrentPath
Fix currentPath()
parents
d45c9c4c
29f487af
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
config.yml
.circleci/config.yml
+6
-6
fileManager.js
src/app/files/fileManager.js
+1
-1
righthand-panel.js
src/app/panels/righthand-panel.js
+2
-2
run-tab.js
src/app/tabs/run-tab.js
+1
-1
test-tab.js
src/app/tabs/test-tab.js
+4
-4
No files found.
.circleci/config.yml
View file @
bc3f5337
...
@@ -7,7 +7,7 @@ jobs:
...
@@ -7,7 +7,7 @@ jobs:
remix-ide
:
remix-ide
:
docker
:
docker
:
# specify the version you desire here
# specify the version you desire here
-
image
:
circleci/node:
7.10
-
image
:
circleci/node:
9.11.2
# Specify service dependencies here if necessary
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# CircleCI maintains a library of pre-built images
...
@@ -26,10 +26,10 @@ jobs:
...
@@ -26,10 +26,10 @@ jobs:
-
checkout
-
checkout
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
dep-bundle-1
2
-{{ checksum "package.json" }}
-
dep-bundle-1
3
-{{ checksum "package.json" }}
-
run
:
npm install
-
run
:
npm install
-
save_cache
:
-
save_cache
:
key
:
dep-bundle-1
2
-{{ checksum "package.json" }}
key
:
dep-bundle-1
3
-{{ checksum "package.json" }}
paths
:
paths
:
-
~/repo/node_modules
-
~/repo/node_modules
-
run
:
npm run lint && npm run test && npm run downloadsolc && npm run make-mock-compiler && npm run build
-
run
:
npm run lint && npm run test && npm run downloadsolc && npm run make-mock-compiler && npm run build
...
@@ -38,7 +38,7 @@ jobs:
...
@@ -38,7 +38,7 @@ jobs:
remix-debugger
:
remix-debugger
:
docker
:
docker
:
# specify the version you desire here
# specify the version you desire here
-
image
:
circleci/node:
7.10
-
image
:
circleci/node:
9.11.2
working_directory
:
~/repo
working_directory
:
~/repo
...
@@ -46,10 +46,10 @@ jobs:
...
@@ -46,10 +46,10 @@ jobs:
-
checkout
-
checkout
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
dep-bundle-
7
-{{ checksum "package.json" }}
-
dep-bundle-
8
-{{ checksum "package.json" }}
-
run
:
npm install
-
run
:
npm install
-
save_cache
:
-
save_cache
:
key
:
dep-bundle-
7
-{{ checksum "package.json" }}
key
:
dep-bundle-
8
-{{ checksum "package.json" }}
paths
:
paths
:
-
~/repo/node_modules
-
~/repo/node_modules
-
run
:
npm run build_debugger
-
run
:
npm run build_debugger
...
...
src/app/files/fileManager.js
View file @
bc3f5337
...
@@ -74,7 +74,7 @@ class FileManager {
...
@@ -74,7 +74,7 @@ class FileManager {
currentPath
()
{
currentPath
()
{
var
self
=
this
var
self
=
this
var
currentFile
=
self
.
_deps
.
config
.
get
(
'currentFile'
)
var
currentFile
=
self
.
_deps
.
config
.
get
(
'currentFile'
)
var
reg
=
/
(
.*
\/)
.*/
var
reg
=
/
(
.*
)(
\/)
.*/
var
path
=
reg
.
exec
(
currentFile
)
var
path
=
reg
.
exec
(
currentFile
)
return
path
?
path
[
1
]
:
null
return
path
?
path
[
1
]
:
null
}
}
...
...
src/app/panels/righthand-panel.js
View file @
bc3f5337
...
@@ -111,14 +111,14 @@ module.exports = class RighthandPanel {
...
@@ -111,14 +111,14 @@ module.exports = class RighthandPanel {
</div>
</div>
</div>`
</div>`
const
{
compile
,
run
,
settings
,
analysis
,
debug
,
support
}
=
self
.
_components
const
{
compile
,
run
,
settings
,
analysis
,
debug
,
support
,
test
}
=
self
.
_components
self
.
_components
.
tabbedMenu
.
addTab
(
'Compile'
,
'compileView'
,
compile
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Compile'
,
'compileView'
,
compile
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Run'
,
'runView'
,
run
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Run'
,
'runView'
,
run
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Settings'
,
'settingsView'
,
settings
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Settings'
,
'settingsView'
,
settings
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Analysis'
,
'staticanalysisView'
,
analysis
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Analysis'
,
'staticanalysisView'
,
analysis
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Debugger'
,
'debugView'
,
debug
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Debugger'
,
'debugView'
,
debug
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Support'
,
'supportView'
,
support
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Support'
,
'supportView'
,
support
.
render
())
//
self._components.tabbedMenu.addTab('Test', 'testView', test.render())
self
.
_components
.
tabbedMenu
.
addTab
(
'Test'
,
'testView'
,
test
.
render
())
self
.
_components
.
tabbedMenu
.
selectTabByTitle
(
'Compile'
)
self
.
_components
.
tabbedMenu
.
selectTabByTitle
(
'Compile'
)
}
}
// showDebugger () {
// showDebugger () {
...
...
src/app/tabs/run-tab.js
View file @
bc3f5337
...
@@ -266,7 +266,7 @@ function makeRecorder (registry, runTabEvent, self) {
...
@@ -266,7 +266,7 @@ function makeRecorder (registry, runTabEvent, self) {
modalDialogCustom
.
prompt
(
null
,
'Transactions will be saved in a file under '
+
path
,
'scenario.json'
,
input
=>
{
modalDialogCustom
.
prompt
(
null
,
'Transactions will be saved in a file under '
+
path
,
'scenario.json'
,
input
=>
{
var
fileProvider
=
fileManager
.
fileProviderOf
(
path
)
var
fileProvider
=
fileManager
.
fileProviderOf
(
path
)
if
(
fileProvider
)
{
if
(
fileProvider
)
{
var
newFile
=
path
+
input
var
newFile
=
path
+
'/'
+
input
helper
.
createNonClashingName
(
newFile
,
fileProvider
,
(
error
,
newFile
)
=>
{
helper
.
createNonClashingName
(
newFile
,
fileProvider
,
(
error
,
newFile
)
=>
{
if
(
error
)
return
modalDialogCustom
.
alert
(
'Failed to create file. '
+
newFile
+
' '
+
error
)
if
(
error
)
return
modalDialogCustom
.
alert
(
'Failed to create file. '
+
newFile
+
' '
+
error
)
if
(
!
fileProvider
.
set
(
newFile
,
txJSON
))
{
if
(
!
fileProvider
.
set
(
newFile
,
txJSON
))
{
...
...
src/app/tabs/test-tab.js
View file @
bc3f5337
...
@@ -68,8 +68,7 @@ module.exports = class TestTab {
...
@@ -68,8 +68,7 @@ module.exports = class TestTab {
})
})
}
}
function
runTest
(
testFilePath
,
callback
)
{
function
runTest
(
testFilePath
,
provider
,
callback
)
{
var
provider
=
this
.
_deps
.
fileManager
.
fileProviderOf
(
testFilePath
)
provider
.
get
(
testFilePath
,
(
error
,
content
)
=>
{
provider
.
get
(
testFilePath
,
(
error
,
content
)
=>
{
if
(
!
error
)
{
if
(
!
error
)
{
var
runningTest
=
{}
var
runningTest
=
{}
...
@@ -85,13 +84,14 @@ module.exports = class TestTab {
...
@@ -85,13 +84,14 @@ module.exports = class TestTab {
let
runTests
=
function
()
{
let
runTests
=
function
()
{
container
.
innerHTML
=
''
container
.
innerHTML
=
''
var
path
=
this
.
_deps
.
fileManager
.
currentPath
()
var
path
=
this
.
_deps
.
fileManager
.
currentPath
()
var
provider
=
this
.
_deps
.
fileManager
.
fileProviderOf
(
path
)
var
tests
=
[]
var
tests
=
[]
self
.
_deps
.
fileManager
.
filesFromPath
(
path
,
(
error
,
files
)
=>
{
self
.
_deps
.
fileManager
.
filesFromPath
(
path
,
(
error
,
files
)
=>
{
if
(
!
error
)
{
if
(
!
error
)
{
for
(
var
file
in
files
)
{
for
(
var
file
in
files
)
{
if
(
/.
(
_test.sol
)
$/
.
exec
(
file
))
tests
.
push
(
p
ath
+
file
)
if
(
/.
(
_test.sol
)
$/
.
exec
(
file
))
tests
.
push
(
p
rovider
.
type
+
'/'
+
file
)
}
}
async
.
eachOfSeries
(
tests
,
(
value
,
key
,
callback
)
=>
{
runTest
(
value
,
callback
)
})
async
.
eachOfSeries
(
tests
,
(
value
,
key
,
callback
)
=>
{
runTest
(
value
,
provider
,
callback
)
})
}
}
})
})
}
}
...
...
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