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
f6c9d97c
Commit
f6c9d97c
authored
Apr 25, 2021
by
tizah
Committed by
GitHub
Apr 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed old staticAnalysis from remix-project
parent
691f449c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
54 deletions
+24
-54
staticAnalysisView.js
...mix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js
+0
-0
staticAnalysisView-styles.js
...p/tabs/staticanalysis/styles/staticAnalysisView-styles.js
+0
-36
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+24
-18
No files found.
apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js
deleted
100644 → 0
View file @
691f449c
This diff is collapsed.
Click to expand it.
apps/remix-ide/src/app/tabs/staticanalysis/styles/staticAnalysisView-styles.js
deleted
100644 → 0
View file @
691f449c
var
csjs
=
require
(
'csjs-inject'
)
var
css
=
csjs
`
.analysis {
display: flex;
flex-direction: column;
}
.result {
margin-top: 1%;
max-height: 300px;
word-break: break-word;
}
.buttons {
margin: 1rem 0;
}
.label {
display: flex;
align-items: center;
}
.label {
display: flex;
align-items: center;
user-select: none;
}
.block input[type='radio']:checked ~ .entries{
height: auto;
transition: .5s ease-in;
}
.entries{
height: 0;
overflow: hidden;
transition: .5s ease-out;
}
`
module
.
exports
=
css
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
f6c9d97c
...
...
@@ -81,27 +81,30 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
})
const
[
warningState
,
setWarningState
]
=
useState
([])
useEffect
(()
=>
{
if
(
autoRun
)
{
const
setCompilationResult
=
async
(
data
,
source
,
file
)
=>
{
await
setResult
({
lastCompilationResult
:
data
,
lastCompilationSource
:
source
,
currentFile
:
file
})
}
const
executeCompilation
=
()
=>
{
const
setCompilationResult
=
async
(
data
,
source
,
file
)
=>
{
await
setResult
({
lastCompilationResult
:
data
,
lastCompilationSource
:
source
,
currentFile
:
file
})
}
if
(
props
.
analysisModule
)
{
props
.
analysisModule
.
on
(
'solidity'
,
'compilationFinished'
,
(
file
,
source
,
languageVersion
,
data
)
=>
{
if
(
languageVersion
.
indexOf
(
'soljson'
)
!==
0
)
return
setCompilationResult
(
data
,
source
,
file
)
if
(
categoryIndex
.
length
>
0
)
{
run
(
data
,
source
,
file
)
}
if
(
props
.
analysisModule
)
{
props
.
analysisModule
.
on
(
'solidity'
,
'compilationFinished'
,
(
file
,
source
,
languageVersion
,
data
)
=>
{
if
(
languageVersion
.
indexOf
(
'soljson'
)
!==
0
)
return
setCompilationResult
(
data
,
source
,
file
)
if
(
categoryIndex
.
length
>
0
)
{
run
(
data
,
source
,
file
)
}
)
}
}
)
}
}
useEffect
(()
=>
{
if
(
autoRun
)
{
executeCompilation
()
}
return
()
=>
{
}
},
[
autoRun
,
categoryIndex
])
...
...
@@ -270,6 +273,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
label=
{
item
.
description
}
onClick=
{
event
=>
handleCheckSingle
(
event
,
item
.
_index
)
}
checked=
{
categoryIndex
.
includes
(
item
.
_index
.
toString
())
}
onChange=
{
()
=>
{}
}
/>
</
div
>
)
...
...
@@ -297,7 +301,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
expand=
{
false
}
>
<
div
>
<
RemixUiCheckbox
onClick=
{
()
=>
handleCheckOrUncheckCategory
(
category
)
}
id=
{
categoryId
}
inputType=
"checkbox"
label=
{
`Select ${category[0].categoryDisplayName}`
}
name=
'checkCategoryEntry'
checked=
{
category
.
map
(
x
=>
x
.
_index
.
toString
()).
every
(
el
=>
categoryIndex
.
includes
(
el
))
}
/>
<
RemixUiCheckbox
onClick=
{
()
=>
handleCheckOrUncheckCategory
(
category
)
}
id=
{
categoryId
}
inputType=
"checkbox"
label=
{
`Select ${category[0].categoryDisplayName}`
}
name=
'checkCategoryEntry'
checked=
{
category
.
map
(
x
=>
x
.
_index
.
toString
()).
every
(
el
=>
categoryIndex
.
includes
(
el
))
}
onChange=
{
()
=>
{}
}
/>
</
div
>
<
div
className=
"w-100 d-block px-2 my-1 entries collapse multi-collapse"
id=
{
`heading${categoryId}`
}
>
{
category
.
map
((
item
,
i
)
=>
{
...
...
@@ -327,6 +331,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}).
flat
().
every
(
el
=>
categoryIndex
.
includes
(
el
))
}
label=
"Select all"
onClick=
{
()
=>
handleCheckAllModules
(
groupedModules
)
}
onChange=
{
()
=>
{}
}
/>
<
RemixUiCheckbox
id=
"autorunstaticanalysis"
...
...
@@ -334,6 +339,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
onClick=
{
handleAutoRun
}
checked=
{
autoRun
}
label=
"Autorun"
onChange=
{
()
=>
{}
}
/>
<
Button
buttonText=
"Run"
onClick=
{
()
=>
run
(
result
.
lastCompilationResult
,
result
.
lastCompilationSource
,
result
.
currentFile
)
}
disabled=
{
runButtonState
||
categoryIndex
.
length
===
0
}
/>
</
div
>
...
...
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