From ead1199b6646883c908d1a36b4fd56af37ae4bf4 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 20 Jun 2024 14:53:32 +0800 Subject: [PATCH] =?UTF-8?q?sonar+=E4=B8=AA=E4=BA=BA=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- .../bot/disposition/detail.jsx | 3 +- .../SecuritySetting/bot/disposition/index.jsx | 3 +- .../compenent/basicInformation.jsx | 3 +- .../configuration/compenent/putaway.jsx | 20 +- .../SecuritySetting/bot/exploit/index.jsx | 3 +- src/forge/SecuritySetting/img/logoBot.png | Bin 0 -> 4127 bytes src/forge/Server/Index.jsx | 21 + src/forge/Server/List.jsx | 14 +- src/forge/Server/api.js | 69 +++ src/forge/Server/constants/quality.js | 35 ++ src/forge/Server/fetch.js | 10 + src/forge/Server/img/close.png | Bin 0 -> 310 bytes src/forge/Server/img/logo3-1.png | Bin 0 -> 3533 bytes src/forge/Server/img/logo3.png | Bin 3533 -> 1853 bytes src/forge/Server/img/logo4-1.png | Bin 0 -> 2182 bytes src/forge/Server/img/logo4.png | Bin 0 -> 2886 bytes src/forge/Server/img/quality/back.png | Bin 0 -> 654 bytes src/forge/Server/img/quality/bugs.png | Bin 0 -> 397 bytes src/forge/Server/img/quality/code_lines.png | Bin 0 -> 370 bytes src/forge/Server/img/quality/code_smells.png | Bin 0 -> 468 bytes src/forge/Server/img/quality/cover.png | Bin 0 -> 641 bytes src/forge/Server/img/quality/folder.png | Bin 0 -> 390 bytes src/forge/Server/img/quality/high.png | Bin 0 -> 417 bytes src/forge/Server/img/quality/label.png | Bin 0 -> 270 bytes src/forge/Server/img/quality/low.png | Bin 0 -> 363 bytes src/forge/Server/img/quality/medium.png | Bin 0 -> 339 bytes src/forge/Server/img/quality/repeat.png | Bin 0 -> 439 bytes .../Server/img/quality/vulnerabilities.png | Bin 0 -> 337 bytes .../quality/component/ProblemDetail.jsx | 41 ++ src/forge/Server/quality/component/index.scss | 44 ++ src/forge/Server/quality/detail.jsx | 229 +++++++++ src/forge/Server/quality/detail.scss | 461 ++++++++++++++++++ src/forge/Server/quality/index.jsx | 354 ++++++++++++++ .../Server/reposyncer/component/storeList.jsx | 2 +- src/forge/Team/Group/GroupDetailSetting.jsx | 2 +- src/forge/Team/List.jsx | 2 +- src/forge/Team/RightBox.jsx | 84 ++-- src/forge/Wiki/page/index.jsx | 2 +- src/forge/users/Material/Index.jsx | 10 +- src/forge/users/Material/Password.jsx | 14 +- src/forge/users/Material/Phone.jsx | 4 +- src/services/project.js | 2 +- src/softbot/fetch.js | 1 - src/softbot/softBotDetail/index.jsx | 3 +- src/softbot/softBotList/index.jsx | 8 +- src/softbot/softBotList/index.scss | 5 +- 47 files changed, 1366 insertions(+), 85 deletions(-) create mode 100644 src/forge/SecuritySetting/img/logoBot.png create mode 100644 src/forge/Server/api.js create mode 100644 src/forge/Server/constants/quality.js create mode 100644 src/forge/Server/fetch.js create mode 100644 src/forge/Server/img/close.png create mode 100644 src/forge/Server/img/logo3-1.png create mode 100644 src/forge/Server/img/logo4-1.png create mode 100644 src/forge/Server/img/logo4.png create mode 100644 src/forge/Server/img/quality/back.png create mode 100644 src/forge/Server/img/quality/bugs.png create mode 100644 src/forge/Server/img/quality/code_lines.png create mode 100644 src/forge/Server/img/quality/code_smells.png create mode 100644 src/forge/Server/img/quality/cover.png create mode 100644 src/forge/Server/img/quality/folder.png create mode 100644 src/forge/Server/img/quality/high.png create mode 100644 src/forge/Server/img/quality/label.png create mode 100644 src/forge/Server/img/quality/low.png create mode 100644 src/forge/Server/img/quality/medium.png create mode 100644 src/forge/Server/img/quality/repeat.png create mode 100644 src/forge/Server/img/quality/vulnerabilities.png create mode 100644 src/forge/Server/quality/component/ProblemDetail.jsx create mode 100644 src/forge/Server/quality/component/index.scss create mode 100644 src/forge/Server/quality/detail.jsx create mode 100644 src/forge/Server/quality/detail.scss create mode 100644 src/forge/Server/quality/index.jsx diff --git a/src/AppConfig.js b/src/AppConfig.js index a8c2b48b..c10f7c59 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -32,7 +32,7 @@ export function initAxiosInterceptors(props) { // 判断网络是否连接 initOnlineOfflineListener(); - var proxy = "https://pre.gitlink.org.cn"; + var proxy = "http://172.20.32.202:4000"; // var proxy = "https://www.gitlink.org.cn"; //响应前的设置 diff --git a/src/forge/SecuritySetting/bot/disposition/detail.jsx b/src/forge/SecuritySetting/bot/disposition/detail.jsx index ebcc209f..6913649c 100644 --- a/src/forge/SecuritySetting/bot/disposition/detail.jsx +++ b/src/forge/SecuritySetting/bot/disposition/detail.jsx @@ -3,6 +3,7 @@ import { Button, Checkbox, message, Radio, Select, Switch, Spin, Tooltip } from import axios from "axios"; import { Link } from "react-router-dom"; import { getInstallBot, updateInstallBot } from "../../../../softbot/api"; +import logoBot from '../../img/logoBot.png'; import { getImageUrl } from 'educoder'; import './index.scss'; import '../exploit/index.scss'; @@ -158,7 +159,7 @@ function DispositionDetail(props){
~rUYG1ZBEf4^RB{yEgBB)I6TV^vR
zZCAJidz6u8@WDIydN@D;!QTjlAc(O?4D4_|cbD~M1^~xWw0~6;sN?3gVfhANSt5Bp
zKLEjj0d4TcF&x98m`mZyasnl_%r#|g35jBlSQ+7dw>IL{wXg~w2mf*ZobSLylp5dZ
zEBYh?;6}rCuiFG 提供自动化的静态代码检查能力,能够识别代码中的缺陷、安全漏洞、代码异味,同时产出代码覆盖率和重复度的详细报告
+ { issue.message }
+ { issue.rule }
+
+ { issueDetail.type }
+ { issueDetail.severity }
+ 生效时间 { moment(issue.creationDate).format('YYYY年MM月DD日') }
+ { issueDetail.langName }
+ { e.message } 分析失败,请重试 欢迎使用代码质量分析工具 代码分析结果
+ {e.message}
+ { ele.stopPropagation();detail(e)}}>问题分析
+ L{e.line}
+
+ 暂无问题
-
重睛鸟代码溯源
@@ -54,7 +54,7 @@ function Main(props){
查看详情
Reposyncer仓库同步
@@ -64,6 +64,16 @@ function Main(props){
查看详情
*/}
+
+ 代码质量分析工具
+ Q$McDk@$Te-4h$g0-~cEF2jPPc2IY`GhH43gIymUycs?=u
zcz5zZ`z@$szzT{}R*2LU0~VU(yjZ((z(O9VvfqYE`i7yT-v%BZ4&%G`6@9~@Q2T6F
zuIJ;~SN0C^0JQfE!h(`7Peat+V+;6WEt~f=FLurY(4G;51v^stU31JEADbD)yjW%)
zfOd}})yXkXb&mq;O0RRw4`^f$_+NCY?lF1~^P
w%eI
zA2HO6G=uC3)XJa2wqwOI8|6>=0UFP$EqVsEMZbg3rO&+ALHBv+8>P<#2(<7y7$wgk
zPA)v4#)22Xs;=NA>|F0Ap8CQAT1UNtI_eKF=6T$gsi4e5pP^m}4=9uS7wo9c?>ZKl
z$^BD+K(qe_Cg(Mlu!L5
zATQ<8Is~^WRFXWjjrHNOq|vuSRdH+1B{;6^r@%<7#qX+~rN)9PS@k}P5_uyAV0&GZ
z9O~hf=J4_6qDAG!oX4z$?a2F_o1)LPt9qRS3kKf_p8zct
+
history.goBack()}/>
+
{ key.split(`:`)[1] }
{ issueType[e.type] }{ e.flows.length > 0 && +{e.flows.length} }
{ snippetsDetail.component.path }
+
+ { snippetsDetail.sources[index + 1] && (snippetsDetail.sources[index + 1].line - item.line > 1) && {item.line}
+
+
+ selectRepeat(e, item.line)}/>
+ {issues[selectedIssue.component] && issues[selectedIssue.component].map(e => {
+ if (e.line === item.line) {
+ return }
+ >
+ ))}
+
+ ...... {label === "问题类型" ? issueType[e.val] : maintainability[e.val] || e.val}
+ {e.count}
+
{label}
+ {value}
+
{label}
+
+ {percent}%
+ {moreValue}{formatNumber(value)}行
+
+
+
{issueType[e.type]}
+
{maintainability[e.impacts[0].severity]}
+ {e.debt}工作
+
+ {e.tags && e.tags.length > 0 &&
}
+ {e.tags && e.tags.map((tag, index) => (
+
+ {tag}{index < e.tags.length - 1 ? ',' : ''}
+
+ ))}
+
+
+
{wikiDetail.title}
{type === '0' ? '更改邮箱后,您在GitLink的登录账号、接收通知的邮件地址将同步变更。请再次确认。' : '更改密码后,您在GitLink的登录密码将同步变更。请再次确认。'}
+{type === '0' ? '更改邮箱后,您在星云的登录账号、接收通知的邮件地址将同步变更。请再次确认。' : '更改密码后,您在星云的登录密码将同步变更。请再次确认。'}
更改手机号后,您在GitLink的登录账号将同步变更。请再次确认。
+更改手机号后,您在系统的登录账号将同步变更。请再次确认。