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
6ae7edd7
Commit
6ae7edd7
authored
Mar 04, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not automatically create a folder
parent
c759cf72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
test-tab-styles.js
apps/remix-ide/src/app/tabs/styles/test-tab-styles.js
+3
-0
test-tab.js
apps/remix-ide/src/app/tabs/test-tab.js
+13
-3
testTab.js
apps/remix-ide/src/app/tabs/testTab/testTab.js
+3
-0
No files found.
apps/remix-ide/src/app/tabs/styles/test-tab-styles.js
View file @
6ae7edd7
...
...
@@ -48,5 +48,8 @@ var css = csjs`
.labelOnBtn {
border: hidden;
}
.inputFolder {
width: 80%;
}
`
module
.
exports
=
css
apps/remix-ide/src/app/tabs/test-tab.js
View file @
6ae7edd7
...
...
@@ -573,19 +573,29 @@ module.exports = class TestTab extends ViewPlugin {
this
.
inputPath
=
yo
`<input
placeholder=
${
this
.
defaultPath
}
list="utPathList"
class="custom-select"
class="
${
css
.
inputFolder
}
custom-select"
id="utPath"
data-id="uiPathInput"
name="utPath"
style="background-image: var(--primary);"
onkeydown=
${(
e
)
=>
{
if
(
e
.
keyCode
===
191
)
this
.
updateDirList
()
}}
onchange
=
$
{(
e
)
=>
this
.
updateCurrentPath
(
e
)}
/>`
onkeydown=
${(
e
)
=>
{
if
(
e
.
keyCode
===
191
)
this
.
updateDirList
()
}}
/>
`
const
createTestFolder
=
yo
`<button
class="btn border ml-2"
data-id="testTabGenerateTestFolder"
title="Create a test folder"
onclick=
${(
e
)
=>
{
this
.
testTabLogic
.
generateTestFolder
(
this
.
inputPath
.
value
)
}}
>
Create
<
/button>
`
const
availablePaths
=
yo
`
<div>
<div class="d-flex p-2">
${
this
.
inputPath
}
${
createTestFolder
}
${
this
.
uiPathList
}
</div>
</div>
`
this
.
updateDirList
()
this
.
testsExecutionStopped
.
hidden
=
true
...
...
apps/remix-ide/src/app/tabs/testTab/testTab.js
View file @
6ae7edd7
...
...
@@ -11,6 +11,9 @@ class TestTabLogic {
setCurrentPath
(
path
)
{
if
(
path
.
indexOf
(
'/'
)
===
0
)
return
this
.
currentPath
=
path
}
generateTestFolder
(
path
)
{
const
fileProvider
=
this
.
fileManager
.
fileProviderOf
(
path
.
split
(
'/'
)[
0
])
fileProvider
.
exists
(
path
,
(
e
,
res
)
=>
{
if
(
!
res
)
fileProvider
.
createDir
(
path
)
})
}
...
...
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