From c96da86078d4d19376a6fec3c5f7212aec8b3df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Mon, 9 May 2022 14:36:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?glcc=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 2 +- src/forge/Team/New.jsx | 4 ++-- src/forge/Team/Setting/TeamSettingCommon.jsx | 2 +- src/glcc/home/index.jsx | 4 ++-- src/glcc/home/lightspot/index.jsx | 6 +++--- src/glcc/home/timerShaft/index.jsx | 2 +- src/glcc/index.jsx | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/App.js b/src/App.js index 3fdff34d..d0a8cdb4 100644 --- a/src/App.js +++ b/src/App.js @@ -292,7 +292,7 @@ class App extends Component { this.Modifyloginvalue()}> - {pathName && pathName.indexOf("glcc") === -1 ? : } + {!pathName || (pathName && pathName.indexOf("glcc") === -1) ? : } {/* */} {/* wiki预览 */} diff --git a/src/forge/Team/New.jsx b/src/forge/Team/New.jsx index 46e13c3e..7a0fe043 100644 --- a/src/forge/Team/New.jsx +++ b/src/forge/Team/New.jsx @@ -66,8 +66,8 @@ export default Form.create()( if(!value){ callback(); } - if(value && !value.match(/^[a-zA-Z][a-zA-Z0-9_-]{3,19}$/)){ - callback("只能使用以字母开头,包含字母、数字、下划线、横杠等,长度4到20个字符"); + if(value && !value.match(/^[a-zA-Z0-9][a-zA-Z0-9_-]{3,19}$/)){ + callback("只能使用以字母、数字开头,包含字母、数字、下划线、横杠等,长度4到20个字符"); } callback(); } diff --git a/src/forge/Team/Setting/TeamSettingCommon.jsx b/src/forge/Team/Setting/TeamSettingCommon.jsx index 3e0389e3..4c43d8ee 100644 --- a/src/forge/Team/Setting/TeamSettingCommon.jsx +++ b/src/forge/Team/Setting/TeamSettingCommon.jsx @@ -103,7 +103,7 @@ export default Form.create()( if(!value){ callback(); } - if(value && !value.match(/^[a-zA-Z][a-zA-Z0-9_-]{3,19}$/)){ + if(value && !value.match(/^[a-zA-Z0-9][a-zA-Z0-9_-]{3,19}$/)){ callback("只能使用以字母开头,包含字母、数字、下划线、横杠等,长度4到20个字符"); } callback(); diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx index c446391b..f93cd229 100644 --- a/src/glcc/home/index.jsx +++ b/src/glcc/home/index.jsx @@ -16,9 +16,9 @@ export default (props) => { return (
{/* */} - + {/*
*/} - {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月8日")}}> + {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月20日")}}>
立即报名
diff --git a/src/glcc/home/lightspot/index.jsx b/src/glcc/home/lightspot/index.jsx index de56f190..9ff96d8b 100644 --- a/src/glcc/home/lightspot/index.jsx +++ b/src/glcc/home/lightspot/index.jsx @@ -23,14 +23,14 @@ function Lightspot(props) {

有兴趣成为GLCC的导师吗?

想要扩大项目知名度和影响力,为开源项目吸引新鲜血液,培养长期开发者。通过GitLink平台,与高校建立连接,指导开源新人传授他们的开源文化,享受开源的乐趣
- {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月8日")}}>立即报名 + {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月20日")}}>立即报名
- +
- +

汇聚行业顶尖开源项目

平台汇聚华为、xiuos、鲲鹏、开源基金会、飞腾、浪潮等行业尖端开源项目,把握开源生态发展脉搏
diff --git a/src/glcc/home/timerShaft/index.jsx b/src/glcc/home/timerShaft/index.jsx index 930ac780..98b51944 100644 --- a/src/glcc/home/timerShaft/index.jsx +++ b/src/glcc/home/timerShaft/index.jsx @@ -9,7 +9,7 @@ const stepArr = [{ }, { title: "Step2", - date: "4.15-5.8", + date: "4.15-5.20", content: "社区启动报名" }, { diff --git a/src/glcc/index.jsx b/src/glcc/index.jsx index 4598c494..cc621dde 100644 --- a/src/glcc/index.jsx +++ b/src/glcc/index.jsx @@ -31,8 +31,8 @@ const Help = Loadable({ const Glcc = (propsF) => { - // 判断时间是否在开源夏令营报名时间内(4月15日~5月8日) - const isGlccApplyDate = Date.parse(new Date()) < 1652025600000; + // 判断时间是否在开源夏令营报名时间内(4月15日~5月20日) + const isGlccApplyDate = Date.parse(new Date()) < 1653062400000; return (
From 68f60d2a51aaf38fbcf68fa16ab1766f76bc1b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Mon, 9 May 2022 15:27:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=8A=A5=E5=90=8D=E6=97=B6=E9=97=B4=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/apply/index.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/glcc/apply/index.jsx b/src/glcc/apply/index.jsx index bcc14677..74f23fd9 100644 --- a/src/glcc/apply/index.jsx +++ b/src/glcc/apply/index.jsx @@ -46,7 +46,6 @@ function Apply(props) { }else{ window.location.href="/login?go_page=/glcc/apply"; } - }, []) useEffect(()=>{ @@ -108,7 +107,6 @@ function Apply(props) { } return isLt100M && isType; } - function getBase64(img, callback) { const reader = new FileReader(); reader.addEventListener('load', () => callback(reader.result)); @@ -128,7 +126,7 @@ function Apply(props) { } return(
- +
开源夏令营 @@ -177,7 +175,7 @@ function Apply(props) { 'logo格式为png、jpg、jpeg,限制上传大小2m,建议上传尺寸为382*228', 'logo', [{ required: true, message: "请正确上传项目logo" }], - userApplyInfo && userApplyInfo.projectLogoId ?
+ userApplyInfo && userApplyInfo.projectLogoId ?
:

申请说明

-
1、项目报名时间为4月15日—5月8日,请在报名截止时间(北京时间2022年5月8日18点)前提交报名信息。
+
1、项目报名时间为4月15日—5月20日,请在报名截止时间(北京时间2022年5月20日24点)前提交报名信息。
2、本次夏令营使用Gitlink为代码托管平台,学员基于Gitlink上项目数量完成课程任务。如果您的项目还未在Gitlink中,请现将项目迁移到Gitlink,迁移事项请查看迁移说明文档。如在迁移过程中遇到问题,请加qq群: 1071514693 联系qq群管理员。
3、提交社区和项目信息后,欢迎与组委会联系沟通本次编程夏令营宣传推广和后续合作工作。联系人: _TigerWang(微信号,添加请备注Gitlink编程夏令营)