From b7d22f12333c319e3d7d3f18e1962ec1562b7f5f Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sun, 25 Apr 2021 17:38:47 +0800 Subject: [PATCH] merge 09065383c1483c7f2e1da4d6ecd9b7a974040c86 --- src/forge/Component/EAccount.scss | 3 +++ src/forge/Component/SearchUser.jsx | 2 +- src/forge/Divert/Index.scss | 12 ++++++++++++ src/forge/Merge/MergeSubmit.js | 2 +- src/forge/Settings/Setting.js | 29 ++++++++++++++++++++++++++++- src/forge/users/undo_events.js | 16 ---------------- 6 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 src/forge/Divert/Index.scss delete mode 100644 src/forge/users/undo_events.js diff --git a/src/forge/Component/EAccount.scss b/src/forge/Component/EAccount.scss index d0fd2ef2..4bcd6b91 100644 --- a/src/forge/Component/EAccount.scss +++ b/src/forge/Component/EAccount.scss @@ -3,4 +3,7 @@ } .ant-modal-wrap{ z-index: 1002; + .ant-form-explain{ + position: absolute; + } } \ No newline at end of file diff --git a/src/forge/Component/SearchUser.jsx b/src/forge/Component/SearchUser.jsx index 0203d24f..650edd71 100644 --- a/src/forge/Component/SearchUser.jsx +++ b/src/forge/Component/SearchUser.jsx @@ -47,7 +47,7 @@ export default ({ getUser })=>{ src={getImageUrl(`/${item && item.image_url}`)} alt="" /> - + {item.username} ({item.login}) diff --git a/src/forge/Divert/Index.scss b/src/forge/Divert/Index.scss new file mode 100644 index 00000000..0a39e4e2 --- /dev/null +++ b/src/forge/Divert/Index.scss @@ -0,0 +1,12 @@ +.diverModal{ + .descUl{ + background-color: #fffae6; + border-radius: 4px; + padding:10px 15px; + color: #efc16b; + border:1px solid #efc16b; + } + .ant-form-item-required::before{ + content: ""; + } +} \ No newline at end of file diff --git a/src/forge/Merge/MergeSubmit.js b/src/forge/Merge/MergeSubmit.js index 8f2275d8..c25e5584 100644 --- a/src/forge/Merge/MergeSubmit.js +++ b/src/forge/Merge/MergeSubmit.js @@ -102,7 +102,7 @@ class MergeSubmit extends Component{ - + ), diff --git a/src/forge/Settings/Setting.js b/src/forge/Settings/Setting.js index 0620f9b7..9b926296 100644 --- a/src/forge/Settings/Setting.js +++ b/src/forge/Settings/Setting.js @@ -2,6 +2,7 @@ import React, { Component } from "react"; import { Form, Input, Checkbox, Select , Spin } from "antd"; import Title from '../Component/Title'; import {WhiteBack} from '../Component/layout'; +import DivertModal from '../Divert/DivertModal'; import axios from "axios"; import "./setting.scss"; const { TextArea } = Input; @@ -193,16 +194,33 @@ class Setting extends Component { }); }; + // 转移仓库 + DivertProject=()=>{ + this.setState({ + divertVisible:true + }) + } + // 取消仓库转移 + CancelDivertProject=()=>{ + + } + // 确定转移仓库 + onSuccess=()=>{ + + } + render() { const { getFieldDecorator } = this.props.form; const { projectDetail } = this.props; + const { projectsId } = this.props.match.params; - const { CategoryList, LanguageList, private_check ,loading } = this.state; + const { CategoryList, LanguageList, private_check ,loading , divertVisible } = this.state; let mirror = projectDetail && projectDetail.mirror; let type = projectDetail && projectDetail.type; const forked_from_project_id = this.props && this.props.projectDetail && this.props.projectDetail.forked_from_project_id; return (
+ {this.setState({divertVisible:false})}}/> 基本设置 @@ -297,6 +315,15 @@ class Setting extends Component {
危险操作区
+
+
+

转移仓库

+

+ 将此仓库转移给其他用户或组织 +

+
+ 转移 +

删除本仓库

diff --git a/src/forge/users/undo_events.js b/src/forge/users/undo_events.js deleted file mode 100644 index cea2792a..00000000 --- a/src/forge/users/undo_events.js +++ /dev/null @@ -1,16 +0,0 @@ -import React, { Component } from "react"; -import Nodata from "../Nodata"; -class UndoEvents extends Component { - - render() { - return ( -
-
-

待办事项

-
- -
- ); - } -} -export default UndoEvents;