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:
@@ -114,10 +114,7 @@ const PageLayout = () => {
|
||||
// 企业管理页面有自己的布局和滚动控制。
|
||||
// 注意排除 /org/login、/org/register、/org/:slug/login 等认证页——
|
||||
// 它们没有内部滚动容器,若被禁用外层滚动,内容超出视口(如企业注册开启邮箱验证时)会被截断且无法滚动。
|
||||
const isOrgPage =
|
||||
location.pathname.startsWith('/org') &&
|
||||
location.pathname !== '/org/create' &&
|
||||
!isAuthPage;
|
||||
const isOrgPage = location.pathname.startsWith('/org') && !isAuthPage;
|
||||
|
||||
// 需要禁用外层滚动的页面(这些页面内部有自己的滚动容器)
|
||||
const disableOuterScroll =
|
||||
|
||||
@@ -28,6 +28,10 @@ import { useSidebarCollapsed } from '../../hooks/common/useSidebarCollapsed';
|
||||
import { useSidebar } from '../../hooks/common/useSidebar';
|
||||
import { useMinimumLoadingTime } from '../../hooks/common/useMinimumLoadingTime';
|
||||
import { isAdmin, isRoot, showError } from '../../helpers';
|
||||
import {
|
||||
isMiniProgramPaymentPath,
|
||||
isMiniProgramWebView,
|
||||
} from '../../helpers/miniProgram';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { UserContext } from '../../context/User';
|
||||
import {
|
||||
@@ -152,6 +156,10 @@ const SiderBar = ({ onNavigate = () => {}, forceExpanded = false }) => {
|
||||
// 根据配置过滤项目
|
||||
const filteredItems = items.filter((item) => {
|
||||
const configVisible = isModuleVisible('personal', item.itemKey);
|
||||
// WeyAi 小程序里不出现付费入口(helpers/miniProgram.js)。
|
||||
if (isMiniProgramWebView() && isMiniProgramPaymentPath(item.to)) {
|
||||
return false;
|
||||
}
|
||||
return configVisible;
|
||||
});
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
|
||||
import React, { useState, useContext } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { isMiniProgramWebView } from '../../../helpers/miniProgram';
|
||||
import { Button as AntButton, Divider, Tooltip } from 'antd';
|
||||
import { Share2, BookOpen, Download, Wallet } from 'lucide-react';
|
||||
import NewYearButton from './NewYearButton';
|
||||
@@ -184,7 +185,7 @@ const ActionButtons = ({
|
||||
)}
|
||||
|
||||
{/* Recharge Button - 充值按钮 */}
|
||||
{isButtonVisible('recharge') && (
|
||||
{isButtonVisible('recharge') && !isMiniProgramWebView() && (
|
||||
<Link to='/recharge'>
|
||||
<AntButton
|
||||
icon={actionIcon(Wallet)}
|
||||
|
||||
Reference in New Issue
Block a user