feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 43e7fbc20e
commit 6ea8a0f7c2
195 changed files with 3546 additions and 1984 deletions
+3 -2
View File
@@ -16,9 +16,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { X as ActionX } from '@/components/common/icons/ActionIcons';
import React, { useContext, useMemo, useRef, useState, useEffect } from 'react';
import { StatusContext } from '../../context/Status';
import { Megaphone, X } from 'lucide-react';
import { Megaphone } from 'lucide-react';
import { Button } from 'antd';
import { useTranslation } from 'react-i18next';
import { useMarquee } from '../../hooks/common/useMarquee';
@@ -145,7 +146,7 @@ const Marquee = () => {
size='small'
className='marquee-close flex-shrink-0 ml-4 z-10'
aria-label={t('关闭')}
icon={<X size={14} aria-hidden />}
icon={<ActionX size={14} aria-hidden />}
onClick={dismiss}
/>
</div>
+13 -5
View File
@@ -17,12 +17,16 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
ChevronDown as ActionChevronDown,
ChevronRight as ActionChevronRight,
ChevronLeft as ActionChevronLeft,
} from '@/components/common/icons/ActionIcons';
import { consoleMenuPaths, getConsoleMenuKeys } from '../console/consoleRoutes';
import React, { useContext, useEffect, useMemo, useState } from 'react';
import { Link, useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { getLucideIcon } from '../../helpers/render';
import { ChevronDown, ChevronLeft, ChevronRight } from 'lucide-react';
import '../../styles/center-layout.css';
import { useSidebarCollapsed } from '../../hooks/common/useSidebarCollapsed';
import { useSidebar } from '../../hooks/common/useSidebar';
@@ -419,7 +423,7 @@ const SiderBar = ({ onNavigate = () => {}, forceExpanded = false }) => {
{!collapsed && (
<button
type='button'
className='ui-org-group-toggle'
className='app-action-button ui-org-group-toggle'
aria-expanded={!foldedGroups.includes(key)}
onClick={() =>
setFoldedGroups((previous) =>
@@ -430,7 +434,7 @@ const SiderBar = ({ onNavigate = () => {}, forceExpanded = false }) => {
}
>
<span>{label}</span>
<ChevronDown
<ActionChevronDown
size={13}
className={foldedGroups.includes(key) ? 'is-folded' : ''}
aria-hidden='true'
@@ -555,11 +559,15 @@ const SiderBar = ({ onNavigate = () => {}, forceExpanded = false }) => {
{!forceExpanded && (
<button
type='button'
className='ui-center-sidebar-collapse'
className='app-action-button ui-center-sidebar-collapse'
onClick={toggleCollapsed}
aria-label={collapsed ? t('展开导航') : t('收起导航')}
>
{collapsed ? <ChevronRight size={16} /> : <ChevronLeft size={16} />}
{collapsed ? (
<ActionChevronRight size={16} />
) : (
<ActionChevronLeft size={16} />
)}
{!collapsed && <span>{t('收起导航')}</span>}
</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 { Globe as ActionGlobe } from '@/components/common/icons/ActionIcons';
import React, { useEffect, useState } from 'react';
import { Button as AntButton } from 'antd';
import { Dropdown } from '@/components/ui';
import { Globe } from 'lucide-react';
import { CN, GB, JP, KR, TH, VN } from 'country-flag-icons/react/3x2';
import { normalizeLanguage } from '../../../i18n/language';
import { orderEnabledLanguages } from '../../../i18n/catalog';
@@ -80,7 +80,7 @@ const LanguageSelector = ({ currentLang, onLanguageChange, t }) => {
>
<AntButton
type='text'
icon={<Globe size={16} strokeWidth={1.5} aria-hidden />}
icon={<ActionGlobe size={16} strokeWidth={1.5} aria-hidden />}
aria-label={t('common.changeLanguage')}
className='ui-header-icon-action'
/>
@@ -17,10 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Compass as ActionCompass } from '@/components/common/icons/ActionIcons';
import React, { useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import { Button, Dropdown } from '@/components/ui';
import { Compass, ExternalLink } from 'lucide-react';
import { ExternalLink } from 'lucide-react';
import { isNavigationPathActive } from '../../console/consoleRoutes';
/**
@@ -138,7 +139,7 @@ const MobileNavMenu = ({ mainNavLinks, userState, t }) => {
aria-label={t('主导航')}
aria-haspopup='menu'
aria-expanded={visible}
icon={<Compass size={16} />}
icon={<ActionCompass size={16} />}
className='!ml-1 !px-2 !h-8 max-w-[9rem] !rounded-xl !text-current hover:!bg-brand/10 dark:hover:!bg-brand/15 hover:!text-brand-deep dark:hover:!text-brand-from !transition-all !duration-200 active:!scale-95 [&_.ant-btn-content]:min-w-0'
>
<span className='ml-1 text-[13px] font-semibold truncate'>
@@ -17,9 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Volume1 as ActionVolume1 } from '@/components/common/icons/ActionIcons';
import React from 'react';
import { Badge, Button, Tooltip } from 'antd';
import { Volume1 } from 'lucide-react';
// 系统公告入口:34px text 按钮、16px 喇叭图标。
// 显隐(rightActions.notifications)、点击(打开 NoticeModal)与未读数均沿用原逻辑。
@@ -30,7 +30,7 @@ const NotificationButton = ({ unreadCount, onNoticeOpen, t }) => (
type='text'
className='ui-header-icon-action'
aria-label={t('系统公告')}
icon={<Volume1 size={16} strokeWidth={1.5} aria-hidden />}
icon={<ActionVolume1 size={16} strokeWidth={1.5} aria-hidden />}
onClick={onNoticeOpen}
/>
</Badge>
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
import React from 'react';
import { Button, Tooltip } from 'antd';
import { Moon, Sun } from 'lucide-react';
import { Moon, Sun } from '../../common/icons/ActionIcons';
import { useActualTheme } from '../../../context/Theme';
const ThemeToggle = ({ onThemeToggle, t }) => {
+3 -2
View File
@@ -17,11 +17,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { ChevronDown as ActionChevronDown } from '@/components/common/icons/ActionIcons';
import React, { useState } from 'react';
import { Link, useLocation } from 'react-router-dom';
import { Avatar, Button as AntButton, Dropdown as AntDropdown } from 'antd';
import { Button } from '@/components/ui';
import { ChevronDown, UserRound, KeyRound, LogOut } from 'lucide-react';
import { UserRound, KeyRound, LogOut } from 'lucide-react';
import { getUserAvatarUrl, isAuthPagePath } from '../../../helpers';
import SkeletonWrapper from '../components/SkeletonWrapper';
import { isHeaderModuleEnabled } from '../../../constants/headerNavModules';
@@ -183,7 +184,7 @@ const UserArea = ({
{avatarInitial}
</Avatar>
<span className='ui-header-account-name'>{displayName}</span>
<ChevronDown
<ActionChevronDown
size={10}
strokeWidth={1.5}
aria-hidden