Merge branch 'feature_reposyncer' of https://gitlink.org.cn/Gitlink/forgeplus-react into pre_gitlink_ssr

This commit is contained in:
谢思 2024-05-10 15:24:04 +08:00
commit 31fe045773
3 changed files with 5 additions and 5 deletions

View File

@ -12,13 +12,13 @@ function DeleteBox({owner, projectsId, visible, setVisible, branchList, reload,
const [platform, setPlatform] = useState();
//
const repoTypes = sync_repositories_unique.map(item=>{return item.type})
const {type, external_branch_name, gitlink_branch_name, first_sync_direction} = getFieldsValue();
const {external_branch_name, gitlink_branch_name, first_sync_direction} = getFieldsValue();
const showConfrimContent = external_branch_name && gitlink_branch_name && first_sync_direction;
const externalRepoBySelected = type && sync_repositories_unique.filter(item=>item.type.includes(type))[0]
const externalRepoBySelected = platform && sync_repositories_unique.filter(item=>item.type.includes(platform))[0]
const externalRepoInfo = {
address: externalRepoBySelected && externalRepoBySelected.external_repo_address,
branchName: external_branch_name,
type
type: platform
}
const gitlinkRepoInfo = {
address: `${window.location.origin}/${owner}/${projectsId}.git`,

View File

@ -183,7 +183,7 @@ function EditStore(props){
</Select>
)}
</Form.Item>
<Form.Item label={`${platform}同步仓库地址${platform === "Gitee" ? "(仅支持个人仓库,组织仓库暂不支持)" : ""}`} className="storeFormItem" hidden={step || !platform}>
<Form.Item label={`${platform}同步仓库地址(仅支持个人仓库,组织仓库暂不支持)`} className="storeFormItem" hidden={step || !platform}>
{getFieldDecorator("external_repo_address",{
rules:[
{required:true,message: `请输入${platform || ""}同步仓库地址`},

View File

@ -5,7 +5,7 @@ import gitHub from '../../img/github2.png';
import gitHub1 from '../../img/github1.png';
import gitee from '../../img/gitee2.png';
import gitee1 from '../../img/gitee1.png';
import logo from '../../img/logo2.png';
import logo from '../../img/logo3.png';
import '../index.scss';
import axios from "axios";
import AddTaskModal from './addTaskModal';