Skip to content

Commit 9f76e12

Browse files
committed
docs: change tiny-robot url to chat.opentiny.design
1 parent 078168f commit 9f76e12

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

packages/common/src/components/header.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import type { PropType } from 'vue'
44
import type { ICommonOption } from '../index'
55
66
import headerInfo from '../config/header.ts'
7+
console.log('headerInfo', headerInfo)
8+
window.__headerInfo__ = headerInfo // 方便调试
79
import MenuCollapse from '../assets/menu-collapse.svg'
810
911
// 4个副标题,通过分析path, 自动匹配上

packages/common/src/config/header.ts

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,6 @@ import tinyVue from '../assets/appIcon/tiny-vue.svg'
99
import tinyRobot from '../assets/appIcon/tiny-robot.svg'
1010

1111
export default [
12-
{
13-
name: 'TinyVue',
14-
url: '/opentiny-design/tiny-vue',
15-
children: [],
16-
logo: tinyVue,
17-
github: 'https://github.com/opentiny/tiny-vue',
18-
isUnderline: () => location.pathname === '/opentiny-design/tiny-vue'
19-
},
20-
{
21-
name: 'TinyEngine',
22-
url: '/tiny-engine',
23-
children: [],
24-
logo: tinyEngine,
25-
github: 'https://github.com/opentiny/tiny-engine',
26-
isUnderline: () => location.pathname === '/tiny-engine'
27-
},
28-
{
29-
name: 'TinyRobot',
30-
url: '/opentiny-design/tiny-robot',
31-
children: [],
32-
logo: tinyRobot,
33-
hide: false,
34-
github: 'https://github.com/opentiny/tiny-robot',
35-
isUnderline: () => location.pathname === '/opentiny-design/tiny-robot'
36-
},
37-
{
38-
name: '演练场',
39-
url: 'https://opentiny.github.io/playground',
40-
children: []
41-
},
4212
{
4313
name: '开发文档',
4414
url: 'https://docs.opentiny.design',
@@ -60,20 +30,43 @@ export default [
6030
name: '生态产品',
6131
url: '',
6232
children: [
33+
{
34+
title: 'TinyRobot',
35+
desc: 'AI智能助手',
36+
href: 'https://chat.opentiny.design',
37+
logo: tinyRobot,
38+
github: 'https://github.com/opentiny/tiny-robot',
39+
},
40+
{
41+
title: 'TinyVue',
42+
desc: '智能组件库',
43+
href: '/tiny-vue',
44+
logo: tinyVue,
45+
github: 'https://github.com/opentiny/tiny-vue',
46+
isUnderline: () => location.pathname === '/tiny-vue'
47+
},
48+
{
49+
title: 'TinyEngine',
50+
desc: '低代码引擎',
51+
href: '/tiny-engine',
52+
logo: tinyEngine,
53+
github: 'https://github.com/opentiny/tiny-engine',
54+
isUnderline: () => location.pathname === '/tiny-engine'
55+
},
6356
{
6457
title: 'NEXT-SDKs',
6558
desc: '前端智能应用开发工具包',
6659
href: '/opentiny-design/next-sdks',
6760
logo: tinyRobot,
68-
hide: false,
61+
hide: true,
6962
github: 'https://github.com/opentiny/next-sdk'
7063
},
7164
{
7265
title: 'AI-Extension',
7366
desc: 'AI 扩展插件',
7467
href: '/opentiny-design/ai-extension',
7568
logo: tinyRobot,
76-
hide: false,
69+
hide: true,
7770
github: 'https://github.com/opentiny/tiny-robot'
7871
},
7972
{

0 commit comments

Comments
 (0)