From 01b3ee8d49346ab59517d8b900075a749eb6e6f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com>
Date: Wed, 1 Sep 2021 09:33:22 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9projects=E8=B7=AF=E7=94=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.js | 32 ++++---
src/AppConfig.js | 2 +-
src/forge/Activity/ActivityItem.js | 6 +-
src/forge/Component/Contributors.jsx | 2 +-
src/forge/Component/DrawerPanel.jsx | 2 +-
src/forge/Component/Releases.jsx | 6 +-
src/forge/DevOps/About.jsx | 2 +-
src/forge/DevOps/Dispose.jsx | 6 +-
src/forge/DevOps/Dispose/List.jsx | 6 +-
src/forge/DevOps/Index.jsx | 14 +--
src/forge/DevOps/Infos.jsx | 2 +-
src/forge/DevOps/Manage/Params.jsx | 2 +-
src/forge/DevOps/Mould.jsx | 2 +-
src/forge/DevOps/Structure.jsx | 4 +-
src/forge/DevOps/disposePipeline.jsx | 2 +-
src/forge/DevOps/opsDetail.jsx | 4 +-
src/forge/Index.js | 19 ++--
src/forge/Main/CoderDepot.jsx | 26 +++---
src/forge/Main/CoderDepotCatalogue.jsx | 2 +-
src/forge/Main/CoderRootBranch.js | 6 +-
src/forge/Main/CoderRootCommit.js | 6 +-
src/forge/Main/CoderRootFileDetail.js | 2 +-
src/forge/Main/CoderRootIndex.js | 22 ++---
src/forge/Main/CoderRootTag.js | 2 +-
src/forge/Main/Detail.js | 82 ++++++++---------
src/forge/Main/DetailTop.js | 8 +-
src/forge/Main/Diff.jsx | 2 +-
src/forge/Main/Index.js | 2 +-
src/forge/Main/IndexItem.js | 2 +-
src/forge/Main/sub/DetailBanner.jsx | 22 ++---
src/forge/Merge/Commits.jsx | 4 +-
src/forge/Merge/Files.jsx | 2 +-
src/forge/Merge/MergeDetail.js | 6 +-
src/forge/Merge/MergeItem.js | 10 +-
src/forge/Merge/MergeSubmit.js | 2 +-
src/forge/Merge/MessageCount.js | 6 +-
src/forge/Merge/NewMerge.js | 4 +-
src/forge/Merge/merge.js | 2 +-
src/forge/Merge/merge_form.js | 6 +-
src/forge/Merge/no_data.js | 2 +-
src/forge/New/Index.js | 2 +-
src/forge/Newfile/UserSubmitComponent.js | 6 +-
src/forge/Notice/Notify.jsx | 12 +--
src/forge/Notice/UndoEvent.jsx | 2 +-
src/forge/Order/Detail.js | 6 +-
src/forge/Order/Milepost.js | 6 +-
src/forge/Order/MilepostDetail.js | 4 +-
src/forge/Order/Nav.js | 4 +-
src/forge/Order/OrderItem.js | 6 +-
src/forge/Order/UpdateMilepost.js | 2 +-
src/forge/Order/newMilepost.js | 2 +-
src/forge/Order/order.js | 2 +-
src/forge/Order/order_form.js | 6 +-
src/forge/Settings/Branch.js | 2 +-
src/forge/Settings/BranchRule.jsx | 2 +-
src/forge/Settings/Index.js | 32 +++----
src/forge/Settings/Webhooks/Index.jsx | 6 +-
src/forge/Settings/Webhooks/New.jsx | 8 +-
src/forge/Team/Group/GroupDetailProject.jsx | 2 +-
.../Group/Setting/GroupProjectSetting.jsx | 2 +-
src/forge/Team/List.jsx | 4 +-
src/forge/Team/ListItem.jsx | 2 +-
src/forge/UsersList/fork_users.js | 2 +-
src/forge/Version/New.jsx | 6 +-
src/forge/Version/version.js | 4 +-
src/forge/Wiki/EditWiki.jsx | 2 +-
src/forge/Wiki/Index.jsx | 6 +-
src/forge/Wiki/Preview.jsx | 4 +-
src/forge/Wiki/Welcome/index.jsx | 2 +-
src/forge/users/CIList.jsx | 4 +-
.../users/GeneralView/ConcentrateProject.jsx | 2 +-
src/forge/users/Index.jsx | 91 +++++++++++++++++--
72 files changed, 336 insertions(+), 248 deletions(-)
diff --git a/src/App.js b/src/App.js
index ea760e075..6d8397f4f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -245,7 +245,7 @@ class App extends Component {
{/*
- {item.name} + {item.name} {item.trend_type}
: // 如果是合并请求- {item.name} + {item.name} {item.trend_type}
} diff --git a/src/forge/Component/Contributors.jsx b/src/forge/Component/Contributors.jsx index dd7d40e39..2f67b3ab5 100644 --- a/src/forge/Component/Contributors.jsx +++ b/src/forge/Component/Contributors.jsx @@ -137,7 +137,7 @@ function Contributors({contributors,owner,projectsId}){- {item.name} + {item.name} 最新
{item.created_at}
diff --git a/src/forge/DevOps/About.jsx b/src/forge/DevOps/About.jsx index b9524d548..a01271150 100644 --- a/src/forge/DevOps/About.jsx +++ b/src/forge/DevOps/About.jsx @@ -149,7 +149,7 @@ function About(props, ref) { axios.post(url).then(result=>{ setIsSpining(false); if(result && result.data.status === 0){ - props.history.push(`/projects/${owner}/${projectsId}/devops/dispose`); + props.history.push(`/${owner}/${projectsId}/devops/dispose`); // 需要将顶部的open_devops修改 let { changeOpenDevops } = props; changeOpenDevops && changeOpenDevops(true); diff --git a/src/forge/DevOps/Dispose.jsx b/src/forge/DevOps/Dispose.jsx index 2211dbb59..4771816b9 100644 --- a/src/forge/DevOps/Dispose.jsx +++ b/src/forge/DevOps/Dispose.jsx @@ -96,7 +96,7 @@ function Dispose(props){ setVisible(false); if(result && result.data){ props.showNotification("流水线新增成功,请进行工作流配置!"); - props.history.push(`/projects/${owner}/${projectsId}/devops/dispose/${result.data.id}`); + props.history.push(`/${owner}/${projectsId}/devops/dispose/${result.data.id}`); }else{ props.showNotification("流水线新增失败,请稍后再试!"); } @@ -134,12 +134,12 @@ function Dispose(props){ // 模板管理 function toModalManage(){ - props.history.push(`/projects/${owner}/${projectsId}/devops/mould`); + props.history.push(`/${owner}/${projectsId}/devops/mould`); } // 参数管理 function toparameter(){ - props.history.push(`/projects/${owner}/${projectsId}/devops/params`); + props.history.push(`/${owner}/${projectsId}/devops/params`); } const operate = current_user && (permission && permission !== "Reporter"); diff --git a/src/forge/DevOps/Dispose/List.jsx b/src/forge/DevOps/Dispose/List.jsx index 4c077452c..18755e089 100644 --- a/src/forge/DevOps/Dispose/List.jsx +++ b/src/forge/DevOps/Dispose/List.jsx @@ -73,7 +73,7 @@ function List({ list, operate , projectsId , owner , showModal , deleteFunc }){ render:(value,item)=>{ let v = turnbar(item.branch); return( - {value} + {value} ) } }, @@ -117,7 +117,7 @@ function List({ list, operate , projectsId , owner , showModal , deleteFunc }){ return( { operate ? - + 编辑 :"" } { operate ? @@ -125,7 +125,7 @@ function List({ list, operate , projectsId , owner , showModal , deleteFunc }){ 删除 :"" } - 查看运行记录 + 查看运行记录 ) } diff --git a/src/forge/DevOps/Index.jsx b/src/forge/DevOps/Index.jsx index c3a29a3ec..0878425ab 100644 --- a/src/forge/DevOps/Index.jsx +++ b/src/forge/DevOps/Index.jsx @@ -36,37 +36,37 @@ export default ((props)=>{ return(- {item.last_commit && truncateCommitId(item.last_commit.sha)} + {item.last_commit && truncateCommitId(item.last_commit.sha)} {item.last_commit && item.last_commit.message} 最后更新于{item.last_commit && item.last_commit.time_from_now}
@@ -48,7 +48,7 @@ export default ((props)=>{ { (isManager || isDeveloper) && (projectDetail && projectDetail.type!==2) && - 创建合并请求 + 创建合并请求 }
{
diff --git a/src/forge/Main/CoderRootFileDetail.js b/src/forge/Main/CoderRootFileDetail.js
index f86706e4b..fb17098bc 100644
--- a/src/forge/Main/CoderRootFileDetail.js
+++ b/src/forge/Main/CoderRootFileDetail.js
@@ -149,7 +149,7 @@ class CoderRootFileDetail extends Component {
.then((result) => {
if (result) {
this.props.showNotification("删除成功!");
- this.props.history.push(`/projects/${owner}/${projectsId}`);
+ this.props.history.push(`/${owner}/${projectsId}`);
}
})
.catch((error) => {
diff --git a/src/forge/Main/CoderRootIndex.js b/src/forge/Main/CoderRootIndex.js
index 84ab94d3f..c6c7b8dad 100644
--- a/src/forge/Main/CoderRootIndex.js
+++ b/src/forge/Main/CoderRootIndex.js
@@ -87,57 +87,57 @@ class CoderRootIndex extends Component{
{commit.message}} - +
{item.message}
@@ -109,7 +109,7 @@ class MergeItem extends Component {
item.pull_request_head &&
欢迎使用合并请求!
请求将仓库【{i.project && i.project.name}】 +
请求将仓库【{i.project && i.project.name}】 转移给【{i.owner && i.owner.name}】,是否接受?
{ i.status === "common" && diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js index f5294b8a0..8805004b9 100644 --- a/src/forge/Order/Detail.js +++ b/src/forge/Order/Detail.js @@ -85,7 +85,7 @@ class Detail extends Component { }) .then((result) => { if (result) { - this.props.history.push(`/projects/${owner}/${projectsId}/issues`); + this.props.history.push(`/${owner}/${projectsId}/issues`); } }) .catch((error) => { @@ -132,7 +132,7 @@ class Detail extends Component { .then((result) => { if (result) { this.props.history.push( - `/projects/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail` + `/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail` ); } }) @@ -269,7 +269,7 @@ class Detail extends Component { 编辑 diff --git a/src/forge/Order/Milepost.js b/src/forge/Order/Milepost.js index ede2d3149..d25657b7a 100644 --- a/src/forge/Order/Milepost.js +++ b/src/forge/Order/Milepost.js @@ -187,7 +187,7 @@ class Milepost extends Component { { data && data.user_admin_or_member ? - 新的里程碑 + 新的里程碑 : '' }
-
- {item.name} + {item.name} {TagInfo(item.priority,"mr10")}
@@ -88,12 +88,12 @@ class OrderItem extends Component {
- + 基本设置
@@ -67,7 +67,7 @@ class Index extends Component { } >- + 协作者管理 @@ -79,7 +79,7 @@ class Index extends Component { } >
- + Webhooks @@ -91,7 +91,7 @@ class Index extends Component { } >
- + 分支设置 @@ -101,7 +101,7 @@ class Index extends Component { className={pathname.indexOf("setting/tags") > -1 ? "active" : ""} >
-
+
项目标签
@@ -127,64 +127,64 @@ class Index extends Component {
- {item.name}
+ {item.name}
{ item.forked_from_project_id && }
{
item.type && item.type !== 0 ?
diff --git a/src/forge/UsersList/fork_users.js b/src/forge/UsersList/fork_users.js
index 1e4c3e940..23cd5bead 100644
--- a/src/forge/UsersList/fork_users.js
+++ b/src/forge/UsersList/fork_users.js
@@ -96,7 +96,7 @@ class ForkUsers extends Component {
{i.description}