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
f465d462
Commit
f465d462
authored
Apr 21, 2020
by
LianaHus
Committed by
Aniket
Apr 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
align checkboxes
parent
b58f034d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
staticAnalysisView.js
src/app/tabs/staticanalysis/staticAnalysisView.js
+3
-3
test-tab.js
src/app/tabs/test-tab.js
+10
-9
No files found.
src/app/tabs/staticanalysis/staticAnalysisView.js
View file @
f465d462
...
...
@@ -162,17 +162,17 @@ staticAnalysisView.prototype.renderModules = function () {
var
category
=
groupedModules
[
categoryId
]
var
entriesDom
=
category
.
map
((
item
,
i
)
=>
{
return
yo
`
<div class="
d-flex
">
<div class="
form-check
">
<input id="staticanalysismodule_
${
categoryId
}
_
${
i
}
"
type="checkbox"
class="staticAnalysisItem"
class="
form-check-input
staticAnalysisItem"
name="staticanalysismodule"
index=
${
item
.
_index
}
checked="true"
style="vertical-align:bottom"
onclick="
${
function
(
event
)
{
self
.
checkModule
(
event
)
}
}"
>
<label for="staticanalysismodule_
${
categoryId
}
_
${
i
}
" class="
pl-2
mb-1">
<label for="staticanalysismodule_
${
categoryId
}
_
${
i
}
" class="
form-check-label
mb-1">
${
item
.
name
}
${
item
.
description
}
</label>
...
...
src/app/tabs/test-tab.js
View file @
f465d462
...
...
@@ -75,7 +75,7 @@ module.exports = class TestTab extends ViewPlugin {
listTests
()
{
return
this
.
data
.
allTests
.
map
(
test
=>
yo
`
<div class="singleTestLabel d-flex py-1">
<div class="singleTestLabel d-flex
align-items-center
py-1">
<input class="singleTest" id="singleTest
${
test
}
" onchange=
${(
e
)
=>
this
.
toggleCheckbox
(
e
.
target
.
checked
,
test
)}
type="checkbox" checked="true">
<label class="text-nowrap pl-2 mb-0" for="singleTest
${
test
}
">
${
test
}
</label>
</div>`
...
...
@@ -146,17 +146,18 @@ module.exports = class TestTab extends ViewPlugin {
return
}
this
.
testsSummary
.
appendChild
(
yo
`<div class=
${
css
.
summaryTitle
}
>
${
filename
}
</div>`
)
if
(
result
.
totalPassing
>
0
)
{
this
.
testsSummary
.
appendChild
(
yo
`<div class="text-success" >
${
result
.
totalPassing
}
passing (
${
result
.
totalTime
}
s)</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<br>`
)
}
if
(
result
)
{
if
(
result
.
totalPassing
>
0
)
{
this
.
testsSummary
.
appendChild
(
yo
`<div class="text-success">
${
result
.
totalPassing
}
passing (
${
result
.
totalTime
}
s)</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<br>`
)
}
if
(
result
.
totalFailing
>
0
)
{
this
.
testsSummary
.
appendChild
(
yo
`<div class="text-danger"
>
${
result
.
totalFailing
}
failing</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<div class="text-danger">
${
result
.
totalFailing
}
failing</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<br>`
)
}
result
.
errors
.
forEach
((
error
,
index
)
=>
{
this
.
testsSummary
.
appendChild
(
yo
`<div class="text-danger"
>
${
error
.
context
}
-
${
error
.
value
}
</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<div class="text-danger">
${
error
.
context
}
-
${
error
.
value
}
</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<div class="
${
css
.
testFailureSummary
}
text-danger" >
${
error
.
message
}
</div>`
)
this
.
testsSummary
.
appendChild
(
yo
`<br>`
)
})
...
...
@@ -245,7 +246,7 @@ module.exports = class TestTab extends ViewPlugin {
const
tests
=
this
.
data
.
selectedTests
if
(
!
tests
)
return
this
.
loading
.
hidden
=
tests
.
length
===
0
async
.
eachOfSeries
(
tests
,
(
value
,
key
,
callback
)
=>
{
this
.
runTest
(
value
,
callback
)
})
async
.
eachOfSeries
(
tests
,
(
value
,
key
,
callback
)
=>
{
if
(
this
.
hasBeenStopped
)
return
;
this
.
runTest
(
value
,
callback
)
})
}
stopTests
()
{
...
...
@@ -325,7 +326,7 @@ module.exports = class TestTab extends ViewPlugin {
selectAll
()
{
return
yo
`
<div class="d-flex mx-3 pb-2 mt-2 border-bottom">
<div class="d-flex
align-items-center
mx-3 pb-2 mt-2 border-bottom">
<input id="checkAllTests"
type="checkbox"
data-id="testTabCheckAllTests"
...
...
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