新建组织-组织账号正则

This commit is contained in:
caishi 2021-04-21 16:55:10 +08:00
parent 233e6a8226
commit 29e3f0d59d
5 changed files with 48 additions and 45 deletions

View File

@ -18,6 +18,8 @@ function Footer(){
}
return(
<div>
<div style={{height:"483px"}}></div>
<div className="newFooter edu-txt-center">
{value && showhtml(value)}
{/* <div className="footerInfos">
@ -58,6 +60,7 @@ function Footer(){
</div>
<p className="footerCopy">© Copyright 2007~2021 国防科技大学Trustie团队 & IntelliDE <a href="https://beian.miit.gov.cn">湘ICP备 17009477</a></p> */}
</div>
</div>
)
}
export default Footer;

View File

@ -117,7 +117,7 @@ class UserSubmitComponent extends Component {
<span className="df" style={{ alignItems: "center" }}>
<Link to={`/users/${current_user && current_user.login}`} className="show-user-link" >
<img
src={getImageUrl(`images/${current_user && current_user.image_url}`)}
src={getImageUrl(`/${current_user && current_user.image_url}`)}
alt=""
className="screwImg"
/>

View File

@ -51,7 +51,7 @@ class m_editor extends Component {
return (
<React.Fragment>
<div>
<div className="branchTable">
<div className="branchTable" style={{border:"1px solid #eee"}}>
<Editor
height="400px"
language={language ? language : "plaintext"}
@ -64,7 +64,7 @@ class m_editor extends Component {
/>
</div>
{!readOnly && (
<div style={{padding:"20px",marginTop:"20px",borderTop:"1px solid #d9d9d9"}}>
<div style={{marginTop:"20px"}}>
<UserSubmitComponent
{...this.props}
{...this.state}

View File

@ -64,14 +64,14 @@ export default Form.create()(
if(!value){
callback();
}
if(value && !value.match(/^[a-zA-Z][a-zA-Z\d]{3,14}$/)){
callback("只能使用英文字母和数字以字母开头长度为4到15个字符");
if(value && !value.match(/^[a-zA-Z][a-zA-Z0-9_-]{3,19}$/)){
callback("只能使用以字母开头包含字母、数字、下划线、横杠等长度4到20个字符");
}
callback();
}
return(
<div className="main">
<div className="main" style={{padding:"0px",border:"none"}}>
<div className="teamBox">
<p className="teamBox-title">新建组织</p>
<Form className="teamBox-form">

View File

@ -95,7 +95,7 @@ body>.-task-title {
}
.newContainer {
background: #f5f5f5;
background: #fff;
}
.ant-modal-title {