From e25de315f88fa9018d5219b51231a88e543137e4 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 15 Dec 2021 09:31:43 +0800 Subject: [PATCH 1/3] clear --- src/forge/Component/Title.jsx | 2 +- src/forge/Main/CoderRootIndex.js | 39 ------------------- src/forge/Main/tree/Index.jsx | 9 ----- .../notice/myNotice/Index.scss | 15 ------- src/forge/SecuritySetting/sub/SSH.jsx | 2 +- 5 files changed, 2 insertions(+), 65 deletions(-) diff --git a/src/forge/Component/Title.jsx b/src/forge/Component/Title.jsx index 9b3f8bf3..8ab6d7e4 100644 --- a/src/forge/Component/Title.jsx +++ b/src/forge/Component/Title.jsx @@ -5,7 +5,7 @@ const Nav = styled.div`{ background-color:#fff; padding:20px 30px; border-bottom:1px solid #eee; - font-size:16px; + font-size:18px; color:#333; display:flex; justify-content: space-between; diff --git a/src/forge/Main/CoderRootIndex.js b/src/forge/Main/CoderRootIndex.js index 7ff25dae..cd15d45e 100644 --- a/src/forge/Main/CoderRootIndex.js +++ b/src/forge/Main/CoderRootIndex.js @@ -29,14 +29,6 @@ const CoderRootVersion = Loadable({ loader: () => import('./version/Index'), loading: Loading, }) -// const CoderRootVersionNew = Loadable({ -// loader: () => import('./version/New'), -// loading: Loading, -// }) -// const CoderRootVersionUpdate = Loadable({ -// loader: () => import('./version/New'), -// loading: Loading, -// }) const Diff = Loadable({ loader: () => import('./Diff'), loading: Loading, @@ -50,37 +42,6 @@ class CoderRootIndex extends Component{ } } - // componentDidMount=()=>{ - // this.Init(); - // } - // componentDidUpdate=(prevProps)=>{ - // const { location } = this.props; - // const prevlocation = prevProps && prevProps.location; - // if (location !== prevlocation) { - // this.Init(); - // } - // } - - // Init=()=>{ - // const { branchName } = this.props.match.params; - // const { defaultBranch } = this.props; - // this.getTopCount(branchName || defaultBranch); - // } - - // 获取组件里要显示的数据 - // getTopCount=(branch)=>{ - // const { projectsId , owner } = this.props.match.params; - // const url = `/${owner}/${projectsId}/top_counts.json`; - // axios.get(url,{params:{ - // ref:branch - // }}).then(result=>{ - // if(result){ - // this.setState({ - // coderCount:result.data - // }) - // } - // }).catch(error=>{console.log(error);}) - // } render(){ return(
diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx index d2dde089..d9255260 100644 --- a/src/forge/Main/tree/Index.jsx +++ b/src/forge/Main/tree/Index.jsx @@ -11,15 +11,6 @@ import Tree from '../img/tree.png'; import Axios from 'axios'; function turnbar(str){ - // const s = '!!@/::"“”<《》>||??%$¥'; - // for(var i=0;i -1){ - // return Base64.encode(str); - // }else{ - // continue; - // } - // } if(str && str.length>0 && str.indexOf("/")>-1){ return str.replaceAll('/','%2F'); } diff --git a/src/forge/SecuritySetting/notice/myNotice/Index.scss b/src/forge/SecuritySetting/notice/myNotice/Index.scss index c7e011a3..7422fb5a 100644 --- a/src/forge/SecuritySetting/notice/myNotice/Index.scss +++ b/src/forge/SecuritySetting/notice/myNotice/Index.scss @@ -42,21 +42,6 @@ .but25{height: 32px; } } - -// button { -// color: #333333; -// background: #FAFBFC; -// border: 1px solid #D0D0D0; -// border-radius: 4px; -// height: 32px; -// } -// button:hover { -// background: #F3F4F6; -// } -// button:active { -// background: #EBECF0; -// } - .deleteBut{ color: #DF0002; } diff --git a/src/forge/SecuritySetting/sub/SSH.jsx b/src/forge/SecuritySetting/sub/SSH.jsx index 2ca890ea..baac12ac 100644 --- a/src/forge/SecuritySetting/sub/SSH.jsx +++ b/src/forge/SecuritySetting/sub/SSH.jsx @@ -54,7 +54,7 @@ function SSH(props) {
setVisible(false)} onSuccess={onSuccess}/> setVisibleDesc(false)} desc={content}/> -
+
SSH密钥
From 278cdba3526077568ec59b75745cac77b895db6a Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 15 Dec 2021 09:46:39 +0800 Subject: [PATCH 2/3] commit clear --- src/forge/Merge/CreateMerge.js | 2 -- src/forge/Order/CopyDetail.js | 2 -- src/forge/Order/Detail.js | 16 ---------------- src/forge/Order/index.scss | 10 ---------- 4 files changed, 30 deletions(-) diff --git a/src/forge/Merge/CreateMerge.js b/src/forge/Merge/CreateMerge.js index 2dfa6f98..12907922 100644 --- a/src/forge/Merge/CreateMerge.js +++ b/src/forge/Merge/CreateMerge.js @@ -178,8 +178,6 @@ class CreateMerge extends Component { // compare接口,获取分支对比信息 compareProject = (sameProject, branchParams) => { - // const { project } = this.props; - // const { owner, projectsId } = this.props.match.params; const { pullOwner, pullBranch, mergeOwner, mergeBranch, projectId } = branchParams; let url = `/${mergeOwner}/${projectId}/compare`; diff --git a/src/forge/Order/CopyDetail.js b/src/forge/Order/CopyDetail.js index 906de4be..d1f628ed 100644 --- a/src/forge/Order/CopyDetail.js +++ b/src/forge/Order/CopyDetail.js @@ -4,8 +4,6 @@ import OrderItem from './order_form' function CopyDetail(props){ - const operate = props.match.params.operate; - console.log(operate); return( ) diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js index b0c82acd..44f13439 100644 --- a/src/forge/Order/Detail.js +++ b/src/forge/Order/Detail.js @@ -124,22 +124,6 @@ class Detail extends Component { //复制 copydetail = () => { const { projectsId, orderId, owner } = this.props.match.params; - // const url = `/${owner}/${projectsId}/issues/${orderId}/copy.json`; - // axios - // .post(url, { - // project_id: projectsId, - // id: orderId, - // }) - // .then((result) => { - // if (result) { - // this.props.history.push( - // `/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail` - // ); - // } - // }) - // .catch((error) => { - // console.log(error); - // }); this.props.history.push( `/${owner}/${projectsId}/issues/${orderId}/copyetail` ); diff --git a/src/forge/Order/index.scss b/src/forge/Order/index.scss index fc88d54d..124c1fdb 100644 --- a/src/forge/Order/index.scss +++ b/src/forge/Order/index.scss @@ -49,16 +49,6 @@ justify-content: center } } -// .statusTag{ -// display: block; -// height: 24px; -// line-height: 24px; -// border-radius: 4px; -// padding:0px 12px; -// color: #fff; -// margin:3px 0px 0px 10px; -// } - .updateBtn{ display: block; width:60px; From 1954a4f8d3dc26678795d7484f2eadeacb59b30f Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 16 Dec 2021 16:08:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5-?= =?UTF-8?q?=E7=BB=84=E7=BB=87-sort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/users/Team.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/users/Team.jsx b/src/forge/users/Team.jsx index 9ddfae16..2751280b 100644 --- a/src/forge/users/Team.jsx +++ b/src/forge/users/Team.jsx @@ -12,7 +12,7 @@ function Team(props){ const [ list ,setList ] = useState(undefined); const [ page ,setPage ] = useState(1); const [ total ,setTotal ] = useState(0); - const [ sort_direction , setSort_direction ] = useState("asc"); + const [ sort_direction , setSort_direction ] = useState("desc"); const [ sort_by ,setSort_by ] = useState("created_at"); const [ search ,setSearch ] = useState(undefined); const { checkIfLogin , showLoginDialog , current_user } = props; @@ -42,7 +42,7 @@ function Team(props){ } const menu = ( setSort_by(e.key)}> - 更新时间排序 + 创建时间排序 项目数排序 用户数排序