|
|
@ -388,13 +388,11 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
: "alert alert-danger" |
|
|
|
: "alert alert-danger" |
|
|
|
}`}
|
|
|
|
}`}
|
|
|
|
style={{ cursor: "pointer" }} |
|
|
|
style={{ cursor: "pointer" }} |
|
|
|
> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
onClick={async () => { |
|
|
|
onClick={async () => { |
|
|
|
await props.analysisModule.call( |
|
|
|
await props.analysisModule.call( |
|
|
|
"editor", |
|
|
|
"editor", |
|
|
|
"discardHighlight" |
|
|
|
"discardHighlight" |
|
|
|
); |
|
|
|
) |
|
|
|
await props.analysisModule.call( |
|
|
|
await props.analysisModule.call( |
|
|
|
"editor", |
|
|
|
"editor", |
|
|
|
"highlight", |
|
|
|
"highlight", |
|
|
@ -414,6 +412,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
); |
|
|
|
); |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<div> |
|
|
|
<span className="text-wrap"> |
|
|
|
<span className="text-wrap"> |
|
|
|
{hint.formattedMessage} |
|
|
|
{hint.formattedMessage} |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -428,8 +427,6 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
key={index} |
|
|
|
key={index} |
|
|
|
className="alert alert-danger" |
|
|
|
className="alert alert-danger" |
|
|
|
style={{ cursor: "pointer" }} |
|
|
|
style={{ cursor: "pointer" }} |
|
|
|
> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
onClick={async () => { |
|
|
|
onClick={async () => { |
|
|
|
await props.analysisModule.call( |
|
|
|
await props.analysisModule.call( |
|
|
|
"editor", |
|
|
|
"editor", |
|
|
@ -454,6 +451,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
); |
|
|
|
); |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
<div> |
|
|
|
<span className="text-wrap"> |
|
|
|
<span className="text-wrap"> |
|
|
|
{hint.formattedMessage} |
|
|
|
{hint.formattedMessage} |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -474,11 +472,13 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
Linter |
|
|
|
Linter |
|
|
|
{hints.length > 0 ? ( |
|
|
|
{hints.length > 0 ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
<i className="badge badge-info rounded-circle ml-1"> |
|
|
|
<i className={`badge ${hints.filter(x => x.type === 'error').length > 0 |
|
|
|
|
|
|
|
? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}>
|
|
|
|
{hintErrors.length} |
|
|
|
{hintErrors.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<i className="badge badge-info rounded-circle ml-1"> |
|
|
|
<i className={`badge ${hints.filter(x => x.type === 'error').length > 0 |
|
|
|
|
|
|
|
? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}>
|
|
|
|
{hints.length} |
|
|
|
{hints.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) |
|
|
|
) |
|
|
@ -536,11 +536,11 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
Slither |
|
|
|
Slither |
|
|
|
{slitherWarnings.length > 0 ? ( |
|
|
|
{slitherWarnings.length > 0 ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
<i className="badge badge-info rounded-circle ml-1"> |
|
|
|
<i className="badge badge-warning rounded-circle ml-1"> |
|
|
|
{slitherErrors.length} |
|
|
|
{slitherErrors.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<i className="badge badge-info rounded-circle ml-1"> |
|
|
|
<i className={`badge ${slitherErrors.length > 0 ? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}> |
|
|
|
{slitherWarnings.length} |
|
|
|
{slitherWarnings.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) |
|
|
|
) |
|
|
|