Skip to content

Commit 35d9d52

Browse files
authored
feat: Added homepages for four TinyVue TinyRobot AIExtension NextSDKs (#6)
* feat: 新增四个产品的首页 * feat: Implement new home pages for TinyVue, TinyRobot, AI Extension, and Next SDKs, including routing, header navigation, and Prettier setup. * feat: add home pages for NEXT-SDKs, TinyRobot, TinyVue, and AI Extension * feat: Add header navigation configuration with product links and icons. * feat: Add initial OpenTiny Vue homepage with hero, feature sections, and AI-powered UI details.
1 parent 7fdd85c commit 35d9d52

36 files changed

Lines changed: 2344 additions & 48 deletions

.prettierrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"trailingComma": "none",
6+
"quoteProps": "preserve",
7+
"endOfLine": "auto",
8+
"bracketSpacing": true,
9+
"jsxBracketSameLine": true,
10+
"jsxSingleQuote": false,
11+
"useTabs": false,
12+
"tabWidth": 2,
13+
"proseWrap": "preserve",
14+
"arrowParens": "always",
15+
"overrides": [
16+
{
17+
"files": ".prettierrc",
18+
"options": {
19+
"parser": "json"
20+
}
21+
}
22+
]
23+
}

packages/common/src/components/header.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ function jumpToApp(app) {
9494
function checkUnderlineMenu() {
9595
setTimeout(() => {
9696
state.headerInfo.forEach(level1 => {
97-
level1.underlined = level1.isUnderline()
97+
if(level1.isUnderline){
98+
level1.underlined = level1.isUnderline()
99+
}
98100
})
99101
}, 200);
100102
}

packages/common/src/config/header.ts

Lines changed: 47 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,56 @@ export default [
1515
children: [],
1616
isUnderline: () => false
1717
},
18+
{
19+
name: 'TinyVue',
20+
url: '/tiny-vue-home',
21+
children: [],
22+
logo: tinyVue,
23+
github: 'https://github.com/opentiny/tiny-vue',
24+
isUnderline: () => location.pathname === '/tiny-vue-home'
25+
},
26+
{
27+
name: 'TinyRobot',
28+
url: '/tiny-robot-home',
29+
children: [],
30+
logo: tinyRobot,
31+
hide: false,
32+
github: 'https://github.com/opentiny/tiny-robot',
33+
isUnderline: () => location.pathname === '/tiny-robot-home'
34+
},
35+
{
36+
name: 'NextSDks',
37+
url: '/next-sdks-home',
38+
children: [],
39+
logo: tinyRobot,
40+
hide: false,
41+
github: 'https://github.com/opentiny/tiny-robot',
42+
isUnderline: () => location.pathname === '/next-sdks-home'
43+
},
44+
{
45+
name: 'AIExtension',
46+
url: '/ai-extension-home',
47+
children: [],
48+
logo: tinyRobot,
49+
hide: false,
50+
github: 'https://github.com/opentiny/tiny-robot',
51+
isUnderline: () => location.pathname === '/ai-extension-home'
52+
},
53+
{
54+
name: 'TinyEngine',
55+
url: '/tiny-engine',
56+
children: [],
57+
logo: tinyEngine,
58+
github: 'https://github.com/opentiny/tiny-engine',
59+
isUnderline: () => location.pathname.startsWith('/tiny-engine')
60+
},
1861
{
1962
name: '技术学院',
2063
url: '/opentiny-design/tech',
2164
children: [],
2265
isUnderline: () => location.pathname.startsWith('/opentiny-design/tech')
2366
},
67+
2468
{
2569
name: '关于我们',
2670
url: '/opentiny-design/about',
@@ -31,22 +75,6 @@ export default [
3175
name: '生态产品',
3276
url: '',
3377
children: [
34-
{
35-
title: 'TinyRobot',
36-
desc: 'AI智能助手',
37-
href: '//agent.opentiny.design/tiny-robot/',
38-
logo: tinyRobot,
39-
hide: false,
40-
github: 'https://github.com/opentiny/tiny-robot'
41-
},
42-
{
43-
title: 'TinyVue',
44-
desc: '智能组件库',
45-
href: '/tiny-vue',
46-
logo: tinyVue,
47-
hide: false,
48-
github: 'https://github.com/opentiny/tiny-vue'
49-
},
5078
{
5179
title: 'TinyPro',
5280
desc: '中后台最佳实践',
@@ -55,14 +83,6 @@ export default [
5583
hide: true,
5684
github: 'https://github.com/opentiny/tiny-cli'
5785
},
58-
// { title: 'TinyTheme', desc: '主题配置系统', href: '/designtheme/home', logo: tinyTheme },
59-
{
60-
title: 'TinyEngine',
61-
desc: '低代码引擎',
62-
href: '/tiny-engine',
63-
logo: tinyEngine,
64-
github: 'https://github.com/opentiny/tiny-engine'
65-
},
6686
{
6787
title: 'TinyCharts',
6888
desc: '图表组件库',
@@ -88,14 +108,8 @@ export default [
88108
}
89109
],
90110
isUnderline: () =>
91-
[
92-
'tiny-cli',
93-
'tiny-charts',
94-
'designtheme',
95-
'pro',
96-
'tiny-engine',
97-
'tiny-ng',
98-
'tiny-vue-mobile',
99-
].some((app) => location.pathname.includes(app))
111+
['tiny-cli', 'tiny-charts', 'designtheme', 'pro', 'tiny-engine', 'tiny-ng', 'tiny-vue-mobile'].some((app) =>
112+
location.pathname.includes(app)
113+
)
100114
}
101115
]
474 KB
Loading
710 KB
Loading
519 KB
Loading
415 KB
Loading
374 KB
Loading
499 KB
Loading
483 KB
Loading

0 commit comments

Comments
 (0)