From 0c0203a8ef1da11ac0039d7618e60b679c1018fb Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 19 Mar 2021 16:34:41 +0800 Subject: [PATCH 1/2] name --- src/forge/Component/LanguagePower.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/Component/LanguagePower.jsx b/src/forge/Component/LanguagePower.jsx index 55169f7e..3197309c 100644 --- a/src/forge/Component/LanguagePower.jsx +++ b/src/forge/Component/LanguagePower.jsx @@ -25,7 +25,7 @@ function LanguagePower({languages}){ } return(
-

语言能力

+

开发语言

{ array && array.map((item,key)=>{ From 8a1feed72bbfac9bce43dbc9bd4367f9a919f077 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 19 Mar 2021 17:22:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9C=AA=E7=99=BB=E5=BD=95=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepot.jsx | 32 ++++++++++++++++++++++++-------- src/forge/Main/Index.scss | 4 ++++ 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 932b9d22..7db7d6bb 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -3,6 +3,7 @@ import { WhiteBack , Box , LongWidth , ShortWidth , Gap , AlignCenter , FlexAJ import { Dropdown , Menu , Divider , Spin } from 'antd'; import { getImageUrl } from "educoder"; import { Link } from 'react-router-dom'; +import CloneAddress from '../Branch/CloneAddress'; import SelectBranch from '../Branch/Select'; import User from '../Component/User'; @@ -142,8 +143,8 @@ function CoderDepot(props){ // 文件相关的下拉项 const fileMenu =( - 上传文件 - 新建文件 + urlLink(`/projects/${owner}/${projectsId}/${branchName || (projectDetail && projectDetail.default_branch)}/uploadfile${treeValue === undefined ? "" : `/${treeValue}`}`)}>上传文件 + urlLink(`/projects/${owner}/${projectsId}/${branchName || (projectDetail && projectDetail.default_branch)}/newfile${treeValue === undefined ? "" : `/${treeValue}`}`)}>新建文件 ) @@ -186,11 +187,26 @@ function CoderDepot(props){ setHide(!hide); } + function urlLink(link){ + if(props.checkIfLogin()===false){ + props.showLoginDialog() + return false; + } + props.history.push(link); + } + const downloadMenu = ( - - ZIP - TAR.GZ - +
+
+ +
+ + 下载 ZIP + 下载 TAR.GZ + +
) return( @@ -250,8 +266,8 @@ function CoderDepot(props){
- + 合并请求 - + 任务 + urlLink(`/projects/${owner}/${projectsId}/pulls/new`)} >+ 合并请求 + urlLink(`/projects/${owner}/${projectsId}/issues/new`)} >+ 任务
{ type === "dir" && 文件} 下载 diff --git a/src/forge/Main/Index.scss b/src/forge/Main/Index.scss index 525f71d3..e144a33d 100644 --- a/src/forge/Main/Index.scss +++ b/src/forge/Main/Index.scss @@ -269,4 +269,8 @@ i{ color: #d9d9d9; } +} +.downMenu{ + box-shadow: 0px 0px 9px rgba(134, 134, 134,0.4); + background-color: #fff; } \ No newline at end of file