diff --git a/web/src/components/auth/LoginForm.js b/web/src/components/auth/LoginForm.js index 1d532efd..6ed309b5 100644 --- a/web/src/components/auth/LoginForm.js +++ b/web/src/components/auth/LoginForm.js @@ -325,7 +325,6 @@ const LoginForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} style={{ color: '#07C160' }} />} - size="large" onClick={onWeChatLoginClicked} loading={wechatLoading} > @@ -339,7 +338,6 @@ const LoginForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} - size="large" onClick={handleGitHubClick} loading={githubLoading} > @@ -353,7 +351,6 @@ const LoginForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} - size="large" onClick={handleOIDCClick} loading={oidcLoading} > @@ -367,7 +364,6 @@ const LoginForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} - size="large" onClick={handleLinuxDOClick} loading={linuxdoLoading} > @@ -393,7 +389,6 @@ const LoginForm = () => { type="primary" className="w-full h-12 flex items-center justify-center bg-black text-white !rounded-full hover:bg-gray-800 transition-colors" icon={} - size="large" onClick={handleEmailLoginClick} loading={emailLoginLoading} > @@ -441,7 +436,6 @@ const LoginForm = () => { label={t('用户名或邮箱')} placeholder={t('请输入您的用户名或邮箱地址')} name="username" - size="large" onChange={(value) => handleChange('username', value)} prefix={} /> @@ -452,7 +446,6 @@ const LoginForm = () => { placeholder={t('请输入您的密码')} name="password" mode="password" - size="large" onChange={(value) => handleChange('password', value)} prefix={} /> @@ -463,7 +456,6 @@ const LoginForm = () => { className="w-full !rounded-full" type="primary" htmlType="submit" - size="large" onClick={handleSubmit} loading={loginLoading} > @@ -474,7 +466,6 @@ const LoginForm = () => { theme="borderless" type='tertiary' className="w-full !rounded-full" - size="large" onClick={handleResetPasswordClick} loading={resetPasswordLoading} > @@ -494,7 +485,6 @@ const LoginForm = () => { theme="outline" type="tertiary" className="w-full !rounded-full" - size="large" onClick={handleOtherLoginOptionsClick} loading={otherLoginOptionsLoading} > @@ -534,7 +524,6 @@ const LoginForm = () => { onOk={onSubmitWeChatVerificationCode} onCancel={() => setShowWeChatLoginModal(false)} okText={t('登录')} - size="small" centered={true} okButtonProps={{ loading: wechatCodeSubmitLoading, @@ -548,7 +537,7 @@ const LoginForm = () => {

{t('微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)')}

-
+ { field="email" label={t('邮箱')} name="email" - size="large" disabled={true} prefix={} placeholder={email ? '' : t('等待获取邮箱信息...')} @@ -142,7 +141,6 @@ const PasswordResetConfirm = () => { field="newPassword" label={t('新密码')} name="newPassword" - size="large" disabled={true} prefix={} suffix={ @@ -167,7 +165,6 @@ const PasswordResetConfirm = () => { className="w-full !rounded-full" type="primary" htmlType="submit" - size="large" onClick={handleSubmit} loading={loading} disabled={disableButton || newPassword || !isValidResetLink} diff --git a/web/src/components/auth/PasswordResetForm.js b/web/src/components/auth/PasswordResetForm.js index a8e4a4d6..93bedae2 100644 --- a/web/src/components/auth/PasswordResetForm.js +++ b/web/src/components/auth/PasswordResetForm.js @@ -120,7 +120,6 @@ const PasswordResetForm = () => { label={t('邮箱')} placeholder={t('请输入您的邮箱地址')} name="email" - size="large" value={email} onChange={handleChange} prefix={} @@ -132,7 +131,6 @@ const PasswordResetForm = () => { className="w-full !rounded-full" type="primary" htmlType="submit" - size="large" onClick={handleSubmit} loading={loading} disabled={disableButton} diff --git a/web/src/components/auth/RegisterForm.js b/web/src/components/auth/RegisterForm.js index 5df3bd04..a216c6f3 100644 --- a/web/src/components/auth/RegisterForm.js +++ b/web/src/components/auth/RegisterForm.js @@ -322,7 +322,6 @@ const RegisterForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} style={{ color: '#07C160' }} />} - size="large" onClick={onWeChatLoginClicked} loading={wechatLoading} > @@ -336,7 +335,6 @@ const RegisterForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} - size="large" onClick={handleGitHubClick} loading={githubLoading} > @@ -350,7 +348,6 @@ const RegisterForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} - size="large" onClick={handleOIDCClick} loading={oidcLoading} > @@ -364,7 +361,6 @@ const RegisterForm = () => { className="w-full h-12 flex items-center justify-center !rounded-full border border-gray-200 hover:bg-gray-50 transition-colors" type="tertiary" icon={} - size="large" onClick={handleLinuxDOClick} loading={linuxdoLoading} > @@ -390,7 +386,6 @@ const RegisterForm = () => { type="primary" className="w-full h-12 flex items-center justify-center bg-black text-white !rounded-full hover:bg-gray-800 transition-colors" icon={} - size="large" onClick={handleEmailRegisterClick} loading={emailRegisterLoading} > @@ -428,7 +423,6 @@ const RegisterForm = () => { label={t('用户名')} placeholder={t('请输入用户名')} name="username" - size="large" onChange={(value) => handleChange('username', value)} prefix={} /> @@ -439,7 +433,6 @@ const RegisterForm = () => { placeholder={t('输入密码,最短 8 位,最长 20 位')} name="password" mode="password" - size="large" onChange={(value) => handleChange('password', value)} prefix={} /> @@ -450,7 +443,6 @@ const RegisterForm = () => { placeholder={t('确认密码')} name="password2" mode="password" - size="large" onChange={(value) => handleChange('password2', value)} prefix={} /> @@ -463,7 +455,6 @@ const RegisterForm = () => { placeholder={t('输入邮箱地址')} name="email" type="email" - size="large" onChange={(value) => handleChange('email', value)} prefix={} suffix={ @@ -471,7 +462,6 @@ const RegisterForm = () => { onClick={sendVerificationCode} loading={verificationCodeLoading} disabled={disableButton || verificationCodeLoading} - size="small" > {disableButton ? `${t('重新发送')} (${countdown})` : t('获取验证码')} @@ -482,7 +472,6 @@ const RegisterForm = () => { label={t('验证码')} placeholder={t('输入验证码')} name="verification_code" - size="large" onChange={(value) => handleChange('verification_code', value)} prefix={} /> @@ -495,7 +484,6 @@ const RegisterForm = () => { className="w-full !rounded-full" type="primary" htmlType="submit" - size="large" onClick={handleSubmit} loading={registerLoading} > @@ -515,7 +503,6 @@ const RegisterForm = () => { theme="outline" type="tertiary" className="w-full !rounded-full" - size="large" onClick={handleOtherRegisterOptionsClick} loading={otherRegisterOptionsLoading} > @@ -544,7 +531,6 @@ const RegisterForm = () => { onOk={onSubmitWeChatVerificationCode} onCancel={() => setShowWeChatLoginModal(false)} okText={t('登录')} - size="small" centered={true} okButtonProps={{ loading: wechatCodeSubmitLoading, @@ -558,7 +544,7 @@ const RegisterForm = () => {

{t('微信扫码关注公众号,输入「验证码」获取验证码(三分钟内有效)')}

- +