feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { MessageCircle as ActionMessageCircle } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Avatar } from '@/components/ui';
|
||||
import { MessageCircle, ScanLine } from 'lucide-react';
|
||||
@@ -177,9 +178,9 @@ const AuthCustomerServiceFloat = () => {
|
||||
) : agent.wecom_url ? (
|
||||
<button
|
||||
onClick={() => window.open(agent.wecom_url, '_blank')}
|
||||
className='w-full flex items-center justify-center gap-1.5 px-3 py-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to text-white text-xs font-medium rounded-lg transition-colors'
|
||||
className='app-action-button w-full flex items-center justify-center gap-1.5 px-3 py-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to text-white text-xs font-medium rounded-lg transition-colors'
|
||||
>
|
||||
<MessageCircle size={12} />
|
||||
<ActionMessageCircle size={12} />
|
||||
{t('联系客服')}
|
||||
</button>
|
||||
) : null}
|
||||
|
||||
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { ArrowRight as ActionArrowRight } from '@/components/common/icons/ActionIcons';
|
||||
import React, {
|
||||
useContext,
|
||||
useEffect,
|
||||
@@ -66,7 +67,7 @@ import DiscordIcon from '../common/logo/DiscordIcon';
|
||||
import TwoFAVerification from './TwoFAVerification';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import AuthBackground from '../common/AuthBackground';
|
||||
import { ArrowRight, Shield, Smartphone, QrCode } from 'lucide-react';
|
||||
import { Shield, Smartphone, QrCode } from 'lucide-react';
|
||||
import GlassCard from './GlassCard';
|
||||
import AuthCardHeader from './AuthCardHeader';
|
||||
import AuthLoginTabs from './AuthLoginTabs';
|
||||
@@ -741,7 +742,7 @@ const LoginForm = () => {
|
||||
{/* 邮箱登录按钮 */}
|
||||
<button
|
||||
onClick={handleEmailLoginClick}
|
||||
className='group relative w-full h-10 flex items-center justify-center gap-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to text-white rounded-xl shadow-md shadow-brand/25 dark:shadow-brand/15 hover:shadow-lg hover:shadow-brand/30 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 overflow-hidden'
|
||||
className='app-action-button group relative w-full h-10 flex items-center justify-center gap-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to text-white rounded-xl shadow-md shadow-brand/25 dark:shadow-brand/15 hover:shadow-lg hover:shadow-brand/30 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 overflow-hidden'
|
||||
>
|
||||
{/* 闪光效果 */}
|
||||
<div className='absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-500' />
|
||||
@@ -750,7 +751,7 @@ const LoginForm = () => {
|
||||
<span className='relative z-10 font-medium text-sm'>
|
||||
{t('邮箱/用户名 登录')}
|
||||
</span>
|
||||
<ArrowRight
|
||||
<ActionArrowRight
|
||||
size={16}
|
||||
className='relative z-10 group-hover:translate-x-1 transition-transform'
|
||||
/>
|
||||
@@ -946,7 +947,7 @@ const LoginForm = () => {
|
||||
className='auth-login-submit'
|
||||
>
|
||||
<span className='font-semibold'>{t('登 录')}</span>
|
||||
<ArrowRight size={16} />
|
||||
<ActionArrowRight size={16} />
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
|
||||
@@ -17,10 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { Copy as ActionCopy } from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button, Toast, Banner } from '@/components/ui';
|
||||
import { Copy } from 'lucide-react';
|
||||
import { copy as copyText } from '../../helpers/utils';
|
||||
|
||||
/**
|
||||
@@ -69,7 +69,7 @@ const OrgCredentialResult = ({ creds, onLogin }) => {
|
||||
<Button
|
||||
size='small'
|
||||
theme='borderless'
|
||||
icon={<Copy size={14} />}
|
||||
icon={<ActionCopy size={14} />}
|
||||
onClick={() => copy(value)}
|
||||
aria-label={t('复制')}
|
||||
/>
|
||||
@@ -98,7 +98,12 @@ const OrgCredentialResult = ({ creds, onLogin }) => {
|
||||
<Row label={t('登录名')} value={creds.owner_login_name} mono />
|
||||
<Row label={t('初始密码')} value={creds.initial_password} mono />
|
||||
</div>
|
||||
<Button size='large' block icon={<Copy size={14} />} onClick={copyAll}>
|
||||
<Button
|
||||
size='large'
|
||||
block
|
||||
icon={<ActionCopy size={14} />}
|
||||
onClick={copyAll}
|
||||
>
|
||||
{t('复制全部凭证')}
|
||||
</Button>
|
||||
{onLogin && (
|
||||
|
||||
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { ArrowRight as ActionArrowRight } from '@/components/common/icons/ActionIcons';
|
||||
import React, {
|
||||
useContext,
|
||||
useEffect,
|
||||
@@ -64,7 +65,7 @@ import AuthBackground from '../common/AuthBackground';
|
||||
import GlassCard from './GlassCard';
|
||||
import AuthCardHeader from './AuthCardHeader';
|
||||
import AuthLoginTabs from './AuthLoginTabs';
|
||||
import { ArrowRight, Shield, Smartphone, QrCode } from 'lucide-react';
|
||||
import { Shield, Smartphone, QrCode } from 'lucide-react';
|
||||
import AgreementModal from '../common/DocumentRenderer/AgreementModal';
|
||||
import {
|
||||
isMiniProgramWebView,
|
||||
@@ -606,7 +607,7 @@ const RegisterForm = () => {
|
||||
<button
|
||||
onClick={handleEmailRegisterClick}
|
||||
disabled={emailRegisterLoading}
|
||||
className='group relative w-full h-10 flex items-center justify-center gap-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to text-white rounded-xl shadow-md shadow-brand/25 dark:shadow-brand/15 hover:shadow-lg hover:shadow-brand/30 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 overflow-hidden'
|
||||
className='app-action-button group relative w-full h-10 flex items-center justify-center gap-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to text-white rounded-xl shadow-md shadow-brand/25 dark:shadow-brand/15 hover:shadow-lg hover:shadow-brand/30 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 overflow-hidden'
|
||||
>
|
||||
{/* 闪光效果 */}
|
||||
<div className='absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-500' />
|
||||
@@ -615,7 +616,7 @@ const RegisterForm = () => {
|
||||
<span className='relative z-10 font-medium text-sm'>
|
||||
{t('使用 用户名 注册')}
|
||||
</span>
|
||||
<ArrowRight
|
||||
<ActionArrowRight
|
||||
size={16}
|
||||
className='relative z-10 group-hover:translate-x-1 transition-transform'
|
||||
/>
|
||||
@@ -835,7 +836,7 @@ const RegisterForm = () => {
|
||||
registerLoading ||
|
||||
((hasUserAgreement || hasPrivacyPolicy) && !agreedToTerms)
|
||||
}
|
||||
className='group relative w-full h-10 flex items-center justify-center gap-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to disabled:from-gray-400 disabled:to-gray-500 text-white rounded-xl shadow-md shadow-brand/25 dark:shadow-brand/15 hover:shadow-lg hover:shadow-brand/30 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 disabled:cursor-not-allowed disabled:hover:translate-y-0 overflow-hidden'
|
||||
className='app-action-button group relative w-full h-10 flex items-center justify-center gap-2 bg-gradient-to-r from-brand-from to-brand-to hover:from-brand-from hover:to-brand-to disabled:from-gray-400 disabled:to-gray-500 text-white rounded-xl shadow-md shadow-brand/25 dark:shadow-brand/15 hover:shadow-lg hover:shadow-brand/30 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200 disabled:cursor-not-allowed disabled:hover:translate-y-0 overflow-hidden'
|
||||
>
|
||||
{/* 闪光效果 */}
|
||||
<div className='absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-500' />
|
||||
@@ -847,7 +848,7 @@ const RegisterForm = () => {
|
||||
<span className='relative z-10 font-semibold'>
|
||||
{t('注 册')}
|
||||
</span>
|
||||
<ArrowRight
|
||||
<ActionArrowRight
|
||||
size={16}
|
||||
className='relative z-10 group-hover:translate-x-1 transition-transform'
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user