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
ccd02147
Commit
ccd02147
authored
Jun 20, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix currentPath()
parent
d45c9c4c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
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
test-tab.js
src/app/tabs/test-tab.js
+4
-4
No files found.
.circleci/config.yml
View file @
ccd02147
...
...
@@ -7,7 +7,7 @@ jobs:
remix-ide
:
docker
:
# specify the version you desire here
-
image
:
circleci/node:
7.10
-
image
:
circleci/node:
9.11.2
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
...
...
@@ -26,10 +26,10 @@ jobs:
-
checkout
-
restore_cache
:
keys
:
-
dep-bundle-1
2
-{{ checksum "package.json" }}
-
dep-bundle-1
3
-{{ checksum "package.json" }}
-
run
:
npm install
-
save_cache
:
key
:
dep-bundle-1
2
-{{ checksum "package.json" }}
key
:
dep-bundle-1
3
-{{ checksum "package.json" }}
paths
:
-
~/repo/node_modules
-
run
:
npm run lint && npm run test && npm run downloadsolc && npm run make-mock-compiler && npm run build
...
...
@@ -38,7 +38,7 @@ jobs:
remix-debugger
:
docker
:
# specify the version you desire here
-
image
:
circleci/node:
7.10
-
image
:
circleci/node:
9.11.2
working_directory
:
~/repo
...
...
@@ -46,10 +46,10 @@ jobs:
-
checkout
-
restore_cache
:
keys
:
-
dep-bundle-
7
-{{ checksum "package.json" }}
-
dep-bundle-
8
-{{ checksum "package.json" }}
-
run
:
npm install
-
save_cache
:
key
:
dep-bundle-
7
-{{ checksum "package.json" }}
key
:
dep-bundle-
8
-{{ checksum "package.json" }}
paths
:
-
~/repo/node_modules
-
run
:
npm run build_debugger
...
...
src/app/files/fileManager.js
View file @
ccd02147
...
...
@@ -74,7 +74,7 @@ class FileManager {
currentPath
()
{
var
self
=
this
var
currentFile
=
self
.
_deps
.
config
.
get
(
'currentFile'
)
var
reg
=
/
(
.*
\/)
.*/
var
reg
=
/
(
.*
)(
\/)
.*/
var
path
=
reg
.
exec
(
currentFile
)
return
path
?
path
[
1
]
:
null
}
...
...
src/app/panels/righthand-panel.js
View file @
ccd02147
...
...
@@ -111,14 +111,14 @@ module.exports = class RighthandPanel {
</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
(
'Run'
,
'runView'
,
run
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Settings'
,
'settingsView'
,
settings
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Analysis'
,
'staticanalysisView'
,
analysis
.
render
())
self
.
_components
.
tabbedMenu
.
addTab
(
'Debugger'
,
'debugView'
,
debug
.
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'
)
}
// showDebugger () {
...
...
src/app/tabs/test-tab.js
View file @
ccd02147
...
...
@@ -68,8 +68,7 @@ module.exports = class TestTab {
})
}
function
runTest
(
testFilePath
,
callback
)
{
var
provider
=
this
.
_deps
.
fileManager
.
fileProviderOf
(
testFilePath
)
function
runTest
(
testFilePath
,
provider
,
callback
)
{
provider
.
get
(
testFilePath
,
(
error
,
content
)
=>
{
if
(
!
error
)
{
var
runningTest
=
{}
...
...
@@ -85,13 +84,14 @@ module.exports = class TestTab {
let
runTests
=
function
()
{
container
.
innerHTML
=
''
var
path
=
this
.
_deps
.
fileManager
.
currentPath
()
var
provider
=
this
.
_deps
.
fileManager
.
fileProviderOf
(
path
)
var
tests
=
[]
self
.
_deps
.
fileManager
.
filesFromPath
(
path
,
(
error
,
files
)
=>
{
if
(
!
error
)
{
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