feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -27,7 +27,7 @@ import {
|
||||
Toast,
|
||||
Tooltip,
|
||||
Popover,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
MessageSquare,
|
||||
Eye,
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useState, useMemo, useCallback } from 'react';
|
||||
import { Button, Tooltip, Toast } from '@douyinfe/semi-ui';
|
||||
import { Button, Tooltip, Toast } from '@/components/ui';
|
||||
import { Copy, ChevronDown, ChevronUp } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { copy } from '../../helpers';
|
||||
@@ -74,7 +74,7 @@ const codeThemeStyles = {
|
||||
color: '#666',
|
||||
fontSize: '14px',
|
||||
fontStyle: 'italic',
|
||||
backgroundColor: 'var(--semi-color-fill-0)',
|
||||
backgroundColor: 'var(--ui-color-fill-0)',
|
||||
borderRadius: '8px',
|
||||
},
|
||||
performanceWarning: {
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useRef } from 'react';
|
||||
import { Button, Typography, Toast, Modal, Dropdown } from '@douyinfe/semi-ui';
|
||||
import { Button, Typography, Toast, Modal, Dropdown } from '@/components/ui';
|
||||
import { Download, Upload, RotateCcw, Settings2 } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useRef, useEffect, useCallback, useContext } from 'react';
|
||||
import { Toast, Tooltip, Modal } from '@douyinfe/semi-ui';
|
||||
import { Toast, Tooltip, Modal } from '@/components/ui';
|
||||
import {
|
||||
Globe,
|
||||
Paperclip,
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
Button,
|
||||
Switch,
|
||||
Banner,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { Code, Edit, Check, X, AlertTriangle } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
TabPane,
|
||||
Button,
|
||||
Dropdown,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { Code, Zap, Clock, X, Eye, Send } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import CodeViewer from './CodeViewer';
|
||||
@@ -61,8 +61,8 @@ const DebugPanel = ({
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
borderRadius: '100%',
|
||||
background: 'rgba(var(--semi-grey-1), 1)',
|
||||
color: 'var(--semi-color-text)',
|
||||
background: 'rgba(var(--ui-grey-1), 1)',
|
||||
color: 'var(--ui-color-text)',
|
||||
cursor: 'pointer',
|
||||
};
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import { Modal, Toast } from '@douyinfe/semi-ui';
|
||||
import { Modal, Toast } from '@/components/ui';
|
||||
import { Download, ExternalLink, X, FileText } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Button } from '@douyinfe/semi-ui';
|
||||
import { Button } from '@/components/ui';
|
||||
import { Settings, Eye, EyeOff } from 'lucide-react';
|
||||
|
||||
const FloatingButtons = ({
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useState, useCallback, useEffect } from 'react';
|
||||
import { Modal } from '@douyinfe/semi-ui';
|
||||
import { Modal } from '@/components/ui';
|
||||
import { Download, ZoomIn, ZoomOut, X, RotateCw } from 'lucide-react';
|
||||
|
||||
const ImagePreviewModal = ({ visible, imageUrl, onClose }) => {
|
||||
|
||||
@@ -18,8 +18,8 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Input, Typography, Button, Switch } from '@douyinfe/semi-ui';
|
||||
import { IconFile } from '@douyinfe/semi-icons';
|
||||
import { Input, Typography, Button, Switch } from '@/components/ui';
|
||||
import { IconFile } from '@/components/ui/icons';
|
||||
import { Plus, X, Image } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import { Modal } from '@douyinfe/semi-ui';
|
||||
import { Modal } from '@/components/ui';
|
||||
import { Keyboard } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Button, Tooltip } from '@douyinfe/semi-ui';
|
||||
import { Button, Tooltip } from '@/components/ui';
|
||||
import { RefreshCw, Copy, Trash2, UserCheck, Edit } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useRef, useEffect, useState } from 'react';
|
||||
import { Typography, TextArea, Button, Tooltip } from '@douyinfe/semi-ui';
|
||||
import { Typography, TextArea, Button, Tooltip } from '@/components/ui';
|
||||
import MarkdownRenderer from '../common/markdown/MarkdownRenderer';
|
||||
import ThinkingContent from './ThinkingContent';
|
||||
import ImagePreviewModal from './ImagePreviewModal';
|
||||
@@ -330,7 +330,7 @@ const MessageContent = ({
|
||||
<div className='mb-2 sm:mb-4'>
|
||||
<div
|
||||
className='flex items-center gap-2 p-2 sm:p-3 bg-gradient-to-r from-amber-50 to-orange-50 rounded-lg'
|
||||
style={{ border: '1px solid var(--semi-color-border)' }}
|
||||
style={{ border: '1px solid var(--ui-color-border)' }}
|
||||
>
|
||||
<div className='w-4 h-4 sm:w-5 sm:h-5 rounded-full bg-gradient-to-br from-amber-500 to-orange-600 flex items-center justify-center shadow-sm'>
|
||||
<Typography.Text className='text-white text-xs font-bold'>
|
||||
|
||||
@@ -20,7 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
// 多选导出:底部悬浮操作条。展示型组件,状态由父级(Playground/index.jsx)持有。
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { Button, RadioGroup, Radio } from '@douyinfe/semi-ui';
|
||||
import { Button, RadioGroup, Radio } from '@/components/ui';
|
||||
import { Download, X } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Input, Slider, Typography, Button, Tag } from '@douyinfe/semi-ui';
|
||||
import { Input, Slider, Typography, Button, Tag } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
Hash,
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
Collapse,
|
||||
Badge,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Copy,
|
||||
ChevronDown,
|
||||
|
||||
@@ -33,7 +33,7 @@ import {
|
||||
Input,
|
||||
Tooltip,
|
||||
Dropdown,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Plus,
|
||||
MessageSquare,
|
||||
@@ -305,7 +305,7 @@ const SessionSidebar = ({
|
||||
value={keyword}
|
||||
onChange={(v) => setKeyword(v)}
|
||||
showClear
|
||||
className='session-search-input [&_.semi-input-wrapper]:!rounded-xl [&_.semi-input-wrapper]:!border-white/45 [&_.semi-input-wrapper]:!bg-white/30 [&_.semi-input-wrapper]:!backdrop-blur-md dark:[&_.semi-input-wrapper]:!border-white/10 dark:[&_.semi-input-wrapper]:!bg-white/[0.055] [&_.semi-input-wrapper:hover]:!border-brand/30 [&_.semi-input-wrapper:focus-within]:!border-brand'
|
||||
className='session-search-input [&_.ant-input-affix-wrapper]:!rounded-xl [&_.ant-input-affix-wrapper]:!border-white/45 [&_.ant-input-affix-wrapper]:!bg-white/30 [&_.ant-input-affix-wrapper]:!backdrop-blur-md dark:[&_.ant-input-affix-wrapper]:!border-white/10 dark:[&_.ant-input-affix-wrapper]:!bg-white/[0.055] [&_.ant-input-affix-wrapper:hover]:!border-brand/30 [&_.ant-input-affix-wrapper:focus-within]:!border-brand'
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Select, Typography, Button, Switch } from '@douyinfe/semi-ui';
|
||||
import { Select, Typography, Button, Switch } from '@/components/ui';
|
||||
import {
|
||||
Users,
|
||||
ToggleLeft,
|
||||
|
||||
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { Typography } from '@douyinfe/semi-ui';
|
||||
import { Typography } from '@/components/ui';
|
||||
import MarkdownRenderer from '../common/markdown/MarkdownRenderer';
|
||||
import { ChevronRight, ChevronUp, Brain, Loader2 } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@@ -155,8 +155,6 @@ const ThinkingContent = ({
|
||||
className='bg-white/70 backdrop-blur-sm rounded-lg sm:rounded-xl p-2 shadow-inner overflow-x-auto overflow-y-auto thinking-content-scroll'
|
||||
style={{
|
||||
maxHeight: '200px',
|
||||
scrollbarWidth: 'thin',
|
||||
scrollbarColor: 'var(--brand-scroll) transparent',
|
||||
}}
|
||||
>
|
||||
<div className='prose prose-xs sm:prose-sm prose-purple max-w-none text-xs sm:text-sm'>
|
||||
|
||||
Reference in New Issue
Block a user