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
c842f637
Commit
c842f637
authored
Aug 08, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update staticAnalysis styling
parent
979717d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
staticAnalysisView.js
src/app/staticanalysis/staticAnalysisView.js
+22
-10
No files found.
src/app/staticanalysis/staticAnalysisView.js
View file @
c842f637
...
@@ -5,12 +5,26 @@ var $ = require('jquery')
...
@@ -5,12 +5,26 @@ var $ = require('jquery')
var
utils
=
require
(
'../utils'
)
var
utils
=
require
(
'../utils'
)
var
csjs
=
require
(
'csjs-inject'
)
var
csjs
=
require
(
'csjs-inject'
)
var
styleGuide
=
require
(
'../style-guide'
)
var
styles
=
styleGuide
()
var
css
=
csjs
`
var
css
=
csjs
`
.analysis {
.analysis {
font-height: 1.5em;
font-height: 1.5em;
}
}
.result {
.result {
margin-top: 1em;
margin-top: 1%;
}
.buttons extends
${
styles
.
displayBox
}
{
display: flex;
align-items: center;
}
.buttonRun extends
${
styles
.
button
}
{
background-color:
${
styles
.
colors
.
blue
}
;
margin-right: 1%;
}
.analysisModulesContainer extends
${
styles
.
displayBox
}
{
margin-bottom: 1%;
}
}
`
`
...
@@ -37,13 +51,12 @@ staticAnalysisView.prototype.render = function () {
...
@@ -37,13 +51,12 @@ staticAnalysisView.prototype.render = function () {
var
self
=
this
var
self
=
this
var
view
=
yo
`
var
view
=
yo
`
<div class="
${
css
.
analysis
}
">
<div class="
${
css
.
analysis
}
">
<strong class="
${
css
.
title
}
">Static Analysis</strong><br>
<label for="autorunstaticanalysis"><input id="autorunstaticanalysis" type="checkbox" style="vertical-align:bottom" checked="true">Auto run</label>
<div id="staticanalysismodules">
<div id="staticanalysismodules">
${
this
.
modulesView
}
${
this
.
modulesView
}
</div>
</div>
<div>
<div class="
${
css
.
buttons
}
">
<button onclick=
${
function
()
{
self
.
run
()
}
} >Run</button>
<button class=
${
css
.
buttonRun
}
onclick=
${
function
()
{
self
.
run
()
}
} >Run</button>
<label for="autorunstaticanalysis"><input id="autorunstaticanalysis" type="checkbox" style="vertical-align:bottom" checked="true">Auto run</label>
</div>
</div>
<div class="
${
css
.
result
}
" "id='staticanalysisresult'></div>
<div class="
${
css
.
result
}
" "id='staticanalysisresult'></div>
</div>
</div>
...
@@ -93,10 +106,10 @@ staticAnalysisView.prototype.run = function () {
...
@@ -93,10 +106,10 @@ staticAnalysisView.prototype.run = function () {
})
})
})
})
if
(
warningContainer
.
html
()
===
''
)
{
if
(
warningContainer
.
html
()
===
''
)
{
$
(
'#
header
#menu .staticanalysisView'
).
css
(
'color'
,
''
)
$
(
'#
righthand-panel
#menu .staticanalysisView'
).
css
(
'color'
,
''
)
warningContainer
.
html
(
'No warning to report'
)
warningContainer
.
html
(
'No warning to report'
)
}
else
{
}
else
{
$
(
'#
header
#menu .staticanalysisView'
).
css
(
'color'
,
'#FF8B8B'
)
$
(
'#
righthand-panel
#menu .staticanalysisView'
).
css
(
'color'
,
'#FF8B8B'
)
}
}
})
})
}
else
{
}
else
{
...
@@ -123,8 +136,7 @@ function renderModules (modules) {
...
@@ -123,8 +136,7 @@ function renderModules (modules) {
</label>
</label>
`
`
})
})
return
yo
`<div>
return
yo
`<div class="
${
css
.
analysisModulesContainer
}
">
<br>
<label>
<label>
<b>
${
category
[
0
].
categoryDisplayName
}
</b>
<b>
${
category
[
0
].
categoryDisplayName
}
</b>
</label>
</label>
...
...
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