merge: 合入总仓库 weiyuan(bfdfb339) web/ 新功能,保留 ui-optimization 的 UI 重构
来源:luoguang/monkey-ai weiyuan@bfdfb339 的 web/(经 sync/main-weiyuan-web-bfdfb339 同步)
同步基准:总仓库 a2ca13cb = 本仓库初始导入 d8f3aee2
冲突处理原则:保留 ui-optimization 的 UI(样式/结构/组件),嫁接 weiyuan 的功能逻辑。
- i18n:按键三方合并;ours 的「令牌→密钥」改名键上移植 theirs 的术语修订
- task-logs / OrgLogs:ours 已手工移植同一功能(6ad95e2),保留 ours
- 删除:OrgCreate(theirs 下线 /org/create)、旧 image 组件与 VideoRegenerateModal(theirs 体验中心重写)、
OrgAvatarSection / PricingBentoPage / CommissionConsole(ours 重构中已移除)
- 测试:users-pagination 的 i18next mock 补 t();theirs 新增文件补 license header
This commit is contained in:
@@ -20,10 +20,12 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React from 'react';
|
||||
import WeeLogo from '../components/common/logo/WeeLogo';
|
||||
import { Card, Typography } from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const { Title, Text } = Typography;
|
||||
|
||||
const LogoShowcase = () => {
|
||||
const { t } = useTranslation();
|
||||
const logoStyles = [
|
||||
{
|
||||
name: 'minimalist',
|
||||
@@ -60,10 +62,10 @@ const LogoShowcase = () => {
|
||||
<div className='max-w-6xl mx-auto'>
|
||||
<div className='text-center mb-12'>
|
||||
<Title heading={1} className='!text-4xl !font-bold !mb-4'>
|
||||
WeeLogo 风格展示
|
||||
{t('WeeLogo 风格展示')}
|
||||
</Title>
|
||||
<Text className='text-lg text-gray-600 dark:text-gray-300'>
|
||||
选择最适合你的 Logo 风格
|
||||
{t('选择最适合你的 Logo 风格')}
|
||||
</Text>
|
||||
</div>
|
||||
|
||||
@@ -85,10 +87,10 @@ const LogoShowcase = () => {
|
||||
</div>
|
||||
<div className='p-6 bg-white dark:bg-zinc-800'>
|
||||
<Title heading={3} className='!text-xl !font-semibold !mb-2'>
|
||||
{style.title}
|
||||
{t(style.title)}
|
||||
</Title>
|
||||
<Text className='text-gray-600 dark:text-gray-300'>
|
||||
{style.description}
|
||||
{t(style.description)}
|
||||
</Text>
|
||||
<div className='mt-4 p-3 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm'>
|
||||
{'<WeeLogo style="' + style.name + '" size={64} />'}
|
||||
@@ -100,13 +102,13 @@ const LogoShowcase = () => {
|
||||
|
||||
<Card className='p-8 bg-white dark:bg-zinc-800 shadow-lg'>
|
||||
<Title heading={2} className='!text-2xl !font-bold !mb-6'>
|
||||
使用方法
|
||||
{t('使用方法')}
|
||||
</Title>
|
||||
|
||||
<div className='space-y-6'>
|
||||
<div>
|
||||
<Title heading={4} className='!text-lg !font-semibold !mb-3'>
|
||||
1. 导入组件
|
||||
1. {t('导入组件')}
|
||||
</Title>
|
||||
<div className='p-4 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm overflow-x-auto'>
|
||||
{"import WeeLogo from './components/common/logo/WeeLogo';"}
|
||||
@@ -115,7 +117,7 @@ const LogoShowcase = () => {
|
||||
|
||||
<div>
|
||||
<Title heading={4} className='!text-lg !font-semibold !mb-3'>
|
||||
2. 在 HeaderLogo 中使用
|
||||
2. {t('在 HeaderLogo 中使用')}
|
||||
</Title>
|
||||
<div className='p-4 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm overflow-x-auto whitespace-pre'>
|
||||
{`<HeaderLogo
|
||||
@@ -128,7 +130,7 @@ const LogoShowcase = () => {
|
||||
|
||||
<div>
|
||||
<Title heading={4} className='!text-lg !font-semibold !mb-3'>
|
||||
3. 直接使用
|
||||
3. {t('直接使用')}
|
||||
</Title>
|
||||
<div className='p-4 bg-slate-100 dark:bg-zinc-700 rounded font-mono text-sm overflow-x-auto'>
|
||||
{'<WeeLogo style="tech" size={48} />'}
|
||||
@@ -138,7 +140,7 @@ const LogoShowcase = () => {
|
||||
|
||||
<div className='mt-8 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded'>
|
||||
<Text className='text-blue-800 dark:text-blue-200'>
|
||||
💡 提示: 更多详细信息请查看{' '}
|
||||
💡 {t('提示:更多详细信息请查看')}{' '}
|
||||
<code className='px-2 py-1 bg-blue-100 dark:bg-blue-900 rounded'>
|
||||
web/src/components/common/logo/README.md
|
||||
</code>
|
||||
@@ -148,7 +150,7 @@ const LogoShowcase = () => {
|
||||
|
||||
<div className='mt-8 text-center'>
|
||||
<Text className='text-gray-500 dark:text-gray-400'>
|
||||
所有 Logo 风格都支持平滑的动画效果和响应式设计
|
||||
{t('所有 Logo 风格都支持平滑的动画效果和响应式设计')}
|
||||
</Text>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user