feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent f1aa0399aa
commit 78fe73d0db
576 changed files with 18075 additions and 18912 deletions
@@ -36,9 +36,9 @@ import {
import React from 'react';
import { useDebouncedCallback } from 'use-debounce';
import clsx from 'clsx';
import { Button, Tooltip, Toast } from '@douyinfe/semi-ui';
import { Button, Tooltip, Toast } from '@/components/ui';
import { copy, rehypeSplitWordsIntoSpans } from '../../../helpers';
import { IconCopy } from '@douyinfe/semi-icons';
import { IconCopy } from '@/components/ui/icons';
import { useTranslation } from 'react-i18next';
import ImagePreviewModal from '../../playground/ImagePreviewModal';
@@ -131,9 +131,9 @@ export function Mermaid(props) {
cursor: 'pointer',
overflow: 'auto',
padding: '12px',
border: '1px solid var(--semi-color-border)',
border: '1px solid var(--ui-color-border)',
borderRadius: '8px',
backgroundColor: 'var(--semi-color-bg-1)',
backgroundColor: 'var(--ui-color-bg-1)',
margin: '12px 0',
position: 'relative',
minHeight: isLoading ? '100px' : 'auto',
@@ -150,7 +150,7 @@ export function Mermaid(props) {
display: 'flex',
alignItems: 'center',
gap: '8px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
fontSize: '12px',
}}
>
@@ -158,8 +158,8 @@ export function Mermaid(props) {
style={{
width: '14px',
height: '14px',
border: '2px solid var(--semi-color-border)',
borderTop: '2px solid var(--semi-color-primary)',
border: '2px solid var(--ui-color-border)',
borderTop: '2px solid var(--ui-color-primary)',
borderRadius: '50%',
animation: 'spin 1s linear infinite',
}}
@@ -229,8 +229,8 @@ export function PreCode(props) {
ref={ref}
style={{
position: 'relative',
backgroundColor: 'var(--semi-color-fill-0)',
border: '1px solid var(--semi-color-border)',
backgroundColor: 'var(--ui-color-fill-0)',
border: '1px solid var(--ui-color-border)',
borderRadius: '6px',
padding: '12px',
margin: '12px 0',
@@ -274,10 +274,10 @@ export function PreCode(props) {
}}
style={{
padding: '4px',
backgroundColor: 'var(--semi-color-bg-2)',
backgroundColor: 'var(--ui-color-bg-2)',
borderRadius: '4px',
cursor: 'pointer',
border: '1px solid var(--semi-color-border)',
border: '1px solid var(--ui-color-border)',
boxShadow: '0 1px 2px rgba(0, 0, 0, 0.1)',
}}
/>
@@ -291,18 +291,18 @@ export function PreCode(props) {
{htmlCode.length > 0 && (
<div
style={{
border: '1px solid var(--semi-color-border)',
border: '1px solid var(--ui-color-border)',
borderRadius: '8px',
padding: '16px',
margin: '12px 0',
backgroundColor: 'var(--semi-color-bg-1)',
backgroundColor: 'var(--ui-color-bg-1)',
}}
>
<div
style={{
marginBottom: '8px',
fontSize: '12px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
}}
>
HTML预览:
@@ -380,7 +380,7 @@ function CustomCode(props) {
overflowY: 'hidden',
display: 'block',
padding: '8px 12px',
backgroundColor: 'var(--semi-color-fill-0)',
backgroundColor: 'var(--ui-color-fill-0)',
borderRadius: '4px',
fontSize: '13px',
lineHeight: '1.4',
@@ -511,7 +511,7 @@ function MarkdownContentImpl(props) {
style={{
color: isUserMessage
? '#87CEEB'
: 'var(--semi-color-primary)',
: 'var(--ui-color-primary)',
textDecoration: 'none',
}}
onMouseEnter={(e) => {
@@ -530,7 +530,7 @@ function MarkdownContentImpl(props) {
fontSize: '24px',
fontWeight: 'bold',
margin: '20px 0 12px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -541,7 +541,7 @@ function MarkdownContentImpl(props) {
fontSize: '20px',
fontWeight: 'bold',
margin: '18px 0 10px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -552,7 +552,7 @@ function MarkdownContentImpl(props) {
fontSize: '18px',
fontWeight: 'bold',
margin: '16px 0 8px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -563,7 +563,7 @@ function MarkdownContentImpl(props) {
fontSize: '16px',
fontWeight: 'bold',
margin: '14px 0 6px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -574,7 +574,7 @@ function MarkdownContentImpl(props) {
fontSize: '14px',
fontWeight: 'bold',
margin: '12px 0 4px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -585,7 +585,7 @@ function MarkdownContentImpl(props) {
fontSize: '13px',
fontWeight: 'bold',
margin: '10px 0 4px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -595,12 +595,12 @@ function MarkdownContentImpl(props) {
style={{
borderLeft: isUserMessage
? '4px solid rgba(255, 255, 255, 0.5)'
: '4px solid var(--semi-color-primary)',
: '4px solid var(--ui-color-primary)',
paddingLeft: '16px',
margin: '12px 0',
backgroundColor: isUserMessage
? 'rgba(255, 255, 255, 0.1)'
: 'var(--semi-color-fill-0)',
: 'var(--ui-color-fill-0)',
padding: '8px 16px',
borderRadius: '0 4px 4px 0',
fontStyle: 'italic',
@@ -647,7 +647,7 @@ function MarkdownContentImpl(props) {
borderCollapse: 'collapse',
border: isUserMessage
? '1px solid rgba(255, 255, 255, 0.3)'
: '1px solid var(--semi-color-border)',
: '1px solid var(--ui-color-border)',
borderRadius: '6px',
overflow: 'hidden',
}}
@@ -661,10 +661,10 @@ function MarkdownContentImpl(props) {
padding: '8px 12px',
backgroundColor: isUserMessage
? 'rgba(255, 255, 255, 0.2)'
: 'var(--semi-color-fill-1)',
: 'var(--ui-color-fill-1)',
border: isUserMessage
? '1px solid rgba(255, 255, 255, 0.3)'
: '1px solid var(--semi-color-border)',
: '1px solid var(--ui-color-border)',
fontWeight: 'bold',
textAlign: 'left',
color: isUserMessage ? 'white' : 'inherit',
@@ -678,7 +678,7 @@ function MarkdownContentImpl(props) {
padding: '8px 12px',
border: isUserMessage
? '1px solid rgba(255, 255, 255, 0.3)'
: '1px solid var(--semi-color-border)',
: '1px solid var(--ui-color-border)',
color: isUserMessage ? 'white' : 'inherit',
}}
/>
@@ -727,7 +727,7 @@ export function MarkdownRenderer(props) {
fontSize: `${fontSize}px`,
fontFamily: fontFamily,
lineHeight: '1.6',
color: 'var(--semi-color-text-0)',
color: 'var(--ui-color-text-0)',
...style,
}}
dir='auto'
@@ -740,15 +740,15 @@ export function MarkdownRenderer(props) {
alignItems: 'center',
gap: '8px',
padding: '16px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
}}
>
<div
style={{
width: '16px',
height: '16px',
border: '2px solid var(--semi-color-border)',
borderTop: '2px solid var(--semi-color-primary)',
border: '2px solid var(--ui-color-border)',
borderTop: '2px solid var(--ui-color-primary)',
borderRadius: '50%',
animation: 'spin 1s linear infinite',
}}