Skip to content

Commit

Permalink
Merge branch 'Tencent:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
didebughu authored Feb 27, 2023
2 parents a15d5d5 + 0c19642 commit b72c1ae
Show file tree
Hide file tree
Showing 148 changed files with 1,409 additions and 406 deletions.
Binary file modified server/cls/cls
Binary file not shown.
2 changes: 1 addition & 1 deletion web/packages/shared/tca/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getRepoName = (repoInfo: any, params: GetRepoNameParams = { onlyLas
const repoUrl = url || scmUrl || info.scm_url;
if (repoUrl) {
if (params.onlyLastName) {
return repoUrl.substring(0, repoUrl.lastIndexOf('/') + 1);
return repoUrl.substring(repoUrl.lastIndexOf('/') + 1);
}
return getScmUrlPath(repoUrl);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/components/copy/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/components/filter/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
53 changes: 53 additions & 0 deletions web/packages/tca-analysis/src/components/header/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Header 组件
*/

import React from 'react';
import { useHistory } from 'react-router-dom';
// import { isString } from 'lodash';
import ArrowLeft from 'coding-oa-uikit/lib/icon/ArrowLeft';

import style from './style.scss';

interface HeaderProps {
size?: string;
link?: string; // 路由返回链接
title: string | React.ReactNode; // 标题
description?: string; // 标题描述
onBack?: () => void; // 返回
}

const Header = (props: HeaderProps) => {
const history = useHistory();
const { link, title, size, description, onBack } = props;

return (
<div className={style.header}>
{(link || onBack) && (
<span
className={style.backIcon}
onClick={() => (onBack ? onBack() : history.push(link))}
>
<ArrowLeft />
</span>
)}
<div>
{
size === 'small' ? (
<h4 className={style.smallTitle}>{title}</h4>
) : (
<h2 className={style.title}>{title}</h2>
)
}
{
description && (
<span className={style.description}>{description}</span>
)
}
</div>

</div>
);
};

export default Header;
48 changes: 48 additions & 0 deletions web/packages/tca-analysis/src/components/header/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
@import "@tencent/micro-frontend-shared/style/color.scss";

.header {
display: flex;
align-items: flex-start;
// margin-bottom: 20px;

.back-icon {
width: 28px;
height: 28px;
color: $blue-5;
margin-right: 20px;
text-align: center;
background: #ffffff;
border-radius: 50%;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s;

svg {
font-size: 18px;
vertical-align: middle !important;
}

&:hover {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
}

.title {
flex: 1;
font-size: 18px;
font-weight: 500;
margin-bottom: 0;
}

.small-title {
flex: 1;
font-size: 14px;
font-weight: 500;
margin-bottom: 0;
}

.description {
color: $grey-7;
margin-top: 6px;
}
}
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/components/loading/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/components/repos/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/components/tips/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/context/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
2 changes: 1 addition & 1 deletion web/packages/tca-analysis/src/context/store.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
4 changes: 2 additions & 2 deletions web/packages/tca-analysis/src/modules/projects/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down Expand Up @@ -73,7 +73,7 @@ const Projects = () => {
<Route
exact
path={`${BASE_ROUTE_PREFIX}/code-analysis/(project)?/repos/:repoId?/projects`}
render={() => <ProjectList templates={templates} schemes={schemes} />}
render={() => <ProjectList templates={templates} schemes={schemes}/>}
/>
<Route
path={`${PROJECT_ROUTE_PREFIX}/:tabs`}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down Expand Up @@ -173,7 +173,7 @@ const DetailRight = (props: DetailRightProps) => {
<a onClick={() => {
openDetail(data.checkrule_gid);
}}>
{data.checkrule_display_name}
{data.checkrule_real_name}
</a>
</div>
<div className={style.item}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down Expand Up @@ -58,7 +58,7 @@ const Search = (props: SearchProps) => {
file_path: path,
ci_time_gte: gte,
ci_time_lte: lte,
checkrule_display_name: name,
checkrule_real_name: name,
checkpackage,
} = initialValues;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 THL A29 Limited
// Copyright (c) 2021-2022 THL A29 Limited
//
// This source code file is made available under MIT License
// See LICENSE for details
Expand Down
Loading

0 comments on commit b72c1ae

Please sign in to comment.