feat: 应用中心新增豆包网页应用

This commit is contained in:
2026-08-20 20:17:57 +08:00
parent 6d7a1f6e63
commit 375772291f
2 changed files with 35 additions and 10 deletions
+34 -10
View File
@@ -29,6 +29,7 @@ import {
SearchOutlined,
SettingOutlined,
TeamOutlined,
ThunderboltOutlined,
} from '@ant-design/icons';
import { useAuth } from '../store/auth';
import { SIDEBAR_WIDTH } from '../layout/constants';
@@ -164,15 +165,35 @@ const BUILTIN_APPS: MockApp[] = [
lastUsedAt: '2026-08-20',
isNew: true,
},
{
id: 'doubao',
name: '豆包',
desc: '豆包 AI 助手网页版:对话问答、写作创作、翻译与内容总结。',
source: 'builtin',
category: 'AI',
group: 'AI 工具',
installed: true,
icon: <ThunderboltOutlined />,
color: '#3370ff',
author: '字节跳动',
version: '网页版',
installedAt: '2026-08-20',
lastUsedAt: '2026-08-20',
isNew: true,
},
];
/** 关联外部项目(本地路径 + 运行地址),用于「主干CRM」等外部应用 */
const EXTERNAL_PROJECTS: Record<string, { name: string; path: string; url: string }> = {
/** 关联外部项目(本地路径 + 运行地址),用于「主干CRM」「豆包」等外部网页应用 */
const EXTERNAL_PROJECTS: Record<string, { name: string; path?: string; url: string }> = {
crm: {
name: '客户管理小工具(本地版)',
path: 'C:\\Users\\范先生\\CodeBuddy\\20260815164255\\客户管理小工具',
url: 'https://bbitcrm.bbitcn.net/',
},
doubao: {
name: '豆包网页版',
url: 'https://www.doubao.com/',
},
};
const MARKET_APPS: MockApp[] = [
@@ -761,14 +782,16 @@ export default function AppsPage() {
</a>
</div>
</div>
<div style={{ gridColumn: '1 / -1' }}>
<Typography.Text type="secondary"></Typography.Text>
<Typography.Text code copyable style={{ fontSize: 12 }}>
{ext.path}
</Typography.Text>
</div>
{ext.path && (
<div style={{ gridColumn: '1 / -1' }}>
<Typography.Text type="secondary"></Typography.Text>
<Typography.Text code copyable style={{ fontSize: 12 }}>
{ext.path}
</Typography.Text>
</div>
)}
<div style={{ gridColumn: '1 / -1', color: '#999', fontSize: 12 }}>
线使访
线访
</div>
</div>
</div>
@@ -776,7 +799,7 @@ export default function AppsPage() {
})()}
{/* 功能预览卡片 */}
{['chat', 'contacts', 'schedule', 'forms', 'knowledge', 'crm'].includes(selected.id) ? (
{['chat', 'contacts', 'schedule', 'forms', 'knowledge', 'crm', 'doubao'].includes(selected.id) ? (
<div style={{ marginTop: 24 }}>
<Typography.Title level={5}></Typography.Title>
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(150px, 1fr))', gap: 10 }}>
@@ -905,4 +928,5 @@ const FEATURES: Record<string, string[]> = {
forms: ['表单设计', '在线填写', '审批流转'],
knowledge: ['多级目录', '全文搜索', '团队协作'],
crm: ['客户档案', '联系记录', '项目跟踪', '财务往来', '服务费提醒', '附件管理'],
doubao: ['对话问答', '写作创作', '翻译润色', '内容总结', '代码辅助'],
};