feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,9 +17,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
Search as ActionSearch,
|
||||
RefreshCw as ActionRefreshCw,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { Button } from '@/components/ui';
|
||||
import { RefreshCw, Search } from 'lucide-react';
|
||||
|
||||
const DashboardHeader = ({
|
||||
getGreeting,
|
||||
@@ -42,13 +45,13 @@ const DashboardHeader = ({
|
||||
<div className='flex gap-3'>
|
||||
<Button
|
||||
type='tertiary'
|
||||
icon={<Search size={16} />}
|
||||
icon={<ActionSearch size={16} />}
|
||||
onClick={showSearchModal}
|
||||
className={`bg-green-500 hover:bg-green-600 ${ICON_BUTTON_CLASS}`}
|
||||
/>
|
||||
<Button
|
||||
type='tertiary'
|
||||
icon={<RefreshCw size={16} />}
|
||||
icon={<ActionRefreshCw size={16} />}
|
||||
onClick={refresh}
|
||||
loading={loading}
|
||||
className={`bg-blue-500 hover:bg-blue-600 ${ICON_BUTTON_CLASS}`}
|
||||
|
||||
@@ -17,9 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { RefreshCw as ActionRefreshCw } from '@/components/common/icons/ActionIcons';
|
||||
import React from 'react';
|
||||
import { Card, Button, Spin, Tabs, TabPane, Tag, Empty } from '@/components/ui';
|
||||
import { Gauge, RefreshCw } from 'lucide-react';
|
||||
import { Gauge } from 'lucide-react';
|
||||
import {
|
||||
IllustrationConstruction,
|
||||
IllustrationConstructionDark,
|
||||
@@ -49,7 +50,7 @@ const UptimePanel = ({
|
||||
{t('服务可用性')}
|
||||
</div>
|
||||
<Button
|
||||
icon={<RefreshCw size={14} />}
|
||||
icon={<ActionRefreshCw size={14} />}
|
||||
onClick={loadUptimeData}
|
||||
loading={uptimeLoading}
|
||||
size='small'
|
||||
|
||||
@@ -80,7 +80,6 @@ const Dashboard = () => {
|
||||
dashboardData.consumeQuota,
|
||||
dashboardData.consumeTokens,
|
||||
dashboardData.times,
|
||||
dashboardData.trendData,
|
||||
dashboardData.performanceMetrics,
|
||||
dashboardData.navigate,
|
||||
dashboardData.t,
|
||||
|
||||
@@ -17,9 +17,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
X as ActionX,
|
||||
Search as ActionSearch,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useRef } from 'react';
|
||||
import { Modal, Form, Button } from '@/components/ui';
|
||||
import { Filter, Calendar, Clock, User, Search, X } from 'lucide-react';
|
||||
import { Filter, Calendar, Clock, User } from 'lucide-react';
|
||||
|
||||
const SearchModal = ({
|
||||
searchModalVisible,
|
||||
@@ -65,7 +69,7 @@ const SearchModal = ({
|
||||
onClick={handleCloseModal}
|
||||
className='!rounded-xl !px-5 !h-10 !bg-gray-100 dark:!bg-gray-700 !border-0 hover:!bg-gray-200 dark:hover:!bg-gray-600 !transition-all'
|
||||
style={{ color: '#4b5563' }}
|
||||
icon={<X size={16} style={{ color: '#4b5563' }} />}
|
||||
icon={<ActionX size={16} style={{ color: '#4b5563' }} />}
|
||||
>
|
||||
{t('取消')}
|
||||
</Button>
|
||||
@@ -74,7 +78,7 @@ const SearchModal = ({
|
||||
onClick={handleSearchConfirm}
|
||||
className='!rounded-xl !px-5 !h-10 !bg-gradient-to-r !from-blue-500 !to-brand-to !border-0 hover:!opacity-90 !transition-all !shadow-lg !shadow-blue-500/25'
|
||||
style={{ color: '#ffffff' }}
|
||||
icon={<Search size={16} style={{ color: '#ffffff' }} />}
|
||||
icon={<ActionSearch size={16} style={{ color: '#ffffff' }} />}
|
||||
>
|
||||
{t('查询')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user