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:
+11
-8
@@ -19,6 +19,10 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
|
||||
import React, { lazy, Suspense, useContext, useMemo } from 'react';
|
||||
import { Route, Routes, Navigate, useLocation } from 'react-router-dom';
|
||||
import {
|
||||
isMiniProgramPaymentPath,
|
||||
isMiniProgramWebView,
|
||||
} from './helpers/miniProgram';
|
||||
import Loading from './components/common/ui/Loading';
|
||||
import { AuthRedirect, PrivateRoute, AdminRoute } from './helpers';
|
||||
import NotFound from './pages/NotFound';
|
||||
@@ -91,7 +95,6 @@ const PersonalSetting = lazy(
|
||||
const Setup = lazy(() => import('./pages/Setup'));
|
||||
const Analytics = lazy(() => import('./pages/Analytics'));
|
||||
const Organization = lazy(() => import('./pages/Organization'));
|
||||
const OrgCreate = lazy(() => import('./pages/Organization/OrgCreate'));
|
||||
const AdminOrganizations = lazy(() => import('./pages/AdminOrganizations'));
|
||||
const AdminOrder = lazy(() => import('./pages/AdminOrder'));
|
||||
const AdminInvoice = lazy(() => import('./pages/AdminInvoice'));
|
||||
@@ -226,6 +229,11 @@ function App() {
|
||||
);
|
||||
}
|
||||
|
||||
// WeyAi 小程序的 web-view 里不出现付费页面(见 helpers/miniProgram.js),直接回到个人中心。
|
||||
if (isMiniProgramWebView() && isMiniProgramPaymentPath(location.pathname)) {
|
||||
return <Navigate to='/user-center' replace />;
|
||||
}
|
||||
|
||||
return (
|
||||
<SetupCheck>
|
||||
<Routes>
|
||||
@@ -843,13 +851,8 @@ function App() {
|
||||
path='/org/create'
|
||||
element={
|
||||
<PrivateRoute>
|
||||
{isOrgCenterAvailable ? (
|
||||
<Suspense fallback={<Loading />}>
|
||||
<OrgCreate />
|
||||
</Suspense>
|
||||
) : (
|
||||
<Navigate to='/user-center/dashboard' replace />
|
||||
)}
|
||||
{/* 已下线的自助加入企业页:旧链接/书签统一交给企业中心入口解析 */}
|
||||
<Navigate to='/org' replace />
|
||||
</PrivateRoute>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user