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:
qiubaishen
2026-11-10 12:01:21 +08:00
266 changed files with 38432 additions and 7570 deletions
@@ -182,7 +182,7 @@ const DeptNode = memo(({ data, selected }) => {
<Tooltip
content={
collapsed
? `${t('展开')}(${t('已收起')} ${hiddenCount} ${t('个下级')})`
? t('展开(已收起 {{n}} 个下级)', { n: hiddenCount })
: t('收起下级部门')
}
>
@@ -194,7 +194,7 @@ const OrgScopedLimitButtons = ({
{/* 模型限制 Modal */}
<OrgModal
title={`${t(scopeLabel)}${t('模型限制')}${scopeName ? ` - ${scopeName}` : ''}`}
title={`${t('{{scope}}模型限制', { scope: t(scopeLabel) })}${scopeName ? ` - ${scopeName}` : ''}`}
visible={modelModalVisible}
onOk={handleModelSave}
onCancel={() => setModelModalVisible(false)}
@@ -236,7 +236,7 @@ const OrgScopedLimitButtons = ({
{/* 可调用分组 Modal */}
<OrgModal
title={`${t(scopeLabel)}${t('可调用分组')}${scopeName ? ` - ${scopeName}` : ''}`}
title={`${t('{{scope}}可调用分组', { scope: t(scopeLabel) })}${scopeName ? ` - ${scopeName}` : ''}`}
visible={groupsModalVisible}
onOk={handleGroupsSave}
onCancel={() => setGroupsModalVisible(false)}
@@ -17,6 +17,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import i18next from 'i18next';
// 部门树构建工具:/api/org/dept 返回按 sort asc, id asc 排序的扁平列表,
// 这里按 parent_id 组装成 Semi Tree/TreeSelect 的 treeData。
@@ -34,7 +36,7 @@ export function buildDeptTreeData(depts, options = {}) {
const {
disableNonLeaf = true,
excludeSubtreeOf = null,
disabledLabel = '已停用',
disabledLabel = i18next.t('已停用'),
} = options;
const excluded = (d) =>
excludeSubtreeOf &&