Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(site): 删除无用的代码,更新视觉版本号 #3063

Merged
merged 1 commit into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions src/sites/config/baseConfig.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
// 抽象配置中心

import homefeatures1 from '../assets/images/img-home-features1.png';
import homefeatures2 from '../assets/images/img-home-features2.png';
import homefeatures3 from '../assets/images/img-home-features3.png';
import homefeatures5 from '../assets/images/img-home-features5.png';

// React 官网配置
export const SiteReact = {
repository: {
Expand Down Expand Up @@ -50,42 +43,6 @@ export const SiteReact = {
pathName: '/zh-CN/component/button'
}
],
homePage: {
gitstar: 'https://ghbtns.com/github-btn.html?user=jdf2e&repo=nutui-react&type=star&count=true&size=large',
platform: [
{
title: '京东风格',
desc: '遵循京东 App 10.0 设计规范',
url: homefeatures1
},
{
title: '前沿技术',
desc: 'React Vite 2.x TypeScript',
url: homefeatures3
},
{
title: '适配多端',
desc: '基于 Taro 轻松开发多端小程序',
url: homefeatures5
},
{
title: '组件丰富',
desc: '60+ 组件,覆盖多数业务场景',
url: homefeatures2
}
],
// 是否展示taro楼层
taroShow: true,
bizComponent: [],
cases: {
show: false
},
// 学习资源
article: {
show: true,
moreRouter: '#/zh-CN/resource'
}
},
language: 'react'
};
// React Taro 官网配置
Expand Down Expand Up @@ -133,42 +90,6 @@ export const SiteReactTaro = {
pathName: '/zh-CN/component/button'
}
],
homePage: {
gitstar: 'https://ghbtns.com/github-btn.html?user=jdf2e&repo=nutui-react&type=star&count=true&size=large',
platform: [
{
title: '京东风格',
desc: '遵循京东 App 10.0 设计规范',
url: homefeatures1
},
{
title: '前沿技术',
desc: 'React Vite 2.x TypeScript',
url: homefeatures3
},
{
title: '适配多端',
desc: '基于 Taro 轻松开发多端小程序',
url: homefeatures5
},
{
title: '组件丰富',
desc: '60+ 组件,覆盖多数业务场景',
url: homefeatures2
}
],
// 是否展示taro楼层
taroShow: true,
bizComponent: [],
cases: {
show: false
},
// 学习资源
article: {
show: true,
moreRouter: '#/zh-CN/resource'
}
},
language: 'react'
};

138 changes: 2 additions & 136 deletions src/sites/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const reactGuide = [
name: '3x',
link: '/h5/react/3x/',
language: ['React18'],
app: 'App 10.0'
app: 'App 15.0'
},
{
name: '2x',
Expand All @@ -144,142 +144,12 @@ const reactGuide = [
}
];

const reactTaroGuide = [
{
type: 'React',
icon: 'https://img10.360buyimg.com/imagetools/jfs/t1/93992/33/35657/10303/63c0fddbFa8977e27/8d099681ad788fc8.png',
data: [
{
name: ReactConfig.version,
link: '/taro/react/3x/',
language: ['React18', 'Taro'],
app: 'App 10.0'
},
{
name: '2x',
link: '/taro/react/2x/',
language: ['React18', 'Taro'],
app: 'App 10.0'
},
{
name: '1.x',
link: '/taro/react/1x/',
language: ['React18', 'Taro'],
app: 'App 10.0'
}
]
}
];

const reactNativeGuide = [
{
type: 'React Native',
icon: 'https://img10.360buyimg.com/imagetools/jfs/t1/93992/33/35657/10303/63c0fddbFa8977e27/8d099681ad788fc8.png',
data: [
{
name: '0.x',
link: '/react-native/',
language: ['React18'],
app: 'App 10.0'
}
]
}
];

const businessGuide = [
{
data: [
{
name: 'NutUI-Biz',
link: '/biz/h5/react/1x/#/zh-CN/guide/intro',
language: ['React']
},
{
name: 'NutUI-Bingo',
link: '/bingo/index.html#/',
language: ['Vue3', 'Taro']
},
{
name: 'NutUI-Cat',
link: '/cat/index.html#/',
language: ['Vue2']
}
]
}

// {
// type: 'React',
// icon: 'https://img10.360buyimg.com/imagetools/jfs/t1/93992/33/35657/10303/63c0fddbFa8977e27/8d099681ad788fc8.png',
// data: [
// {
// name: '1.x',
// link: 'https://nutui.jd.com/react',
// language: ['React18'],
// app: 'App 10.0'
// }
// ]
// }
];

const products = [
{
type: 'React',
data: [
{
name: 'NutUI React',
icon:
'https://img12.360buyimg.com/imagetools/jfs/t1/192500/27/37524/4524/649d5065F7e5fbef6/afe567692acba3b0.png',
status: 1,
link: '/h5/react/3x/#/zh-CN/guide/intro-react'
},
{
name: 'NutUI React Taro',
icon:
'https://img13.360buyimg.com/imagetools/jfs/t1/169186/5/33010/1762/639703a1E898bcb96/6c372c661c6dddfe.png',
status: 1,
link: '/taro/react/3x/#/zh-CN/guide/intro-react'
},
{
name: 'NutUI React Native',
icon:
'https://img10.360buyimg.com/imagetools/jfs/t1/93992/33/35657/10303/63c0fddbFa8977e27/8d099681ad788fc8.png',
status: 1,
link: 'https://nutui.jd.com/react-native/#/zh-CN/guide/intro'
}
]
},
{
type: 'Vue',
data: [
{
name: 'NutUI Vue',
icon:
'https://img12.360buyimg.com/imagetools/jfs/t1/192500/27/37524/4524/649d5065F7e5fbef6/afe567692acba3b0.png',
status: 1,
link: '/h5/vue/4x/#/zh-CN/guide/intro'
},
{
name: 'NutUI Vue Taro',
icon:
'https://img13.360buyimg.com/imagetools/jfs/t1/169186/5/33010/1762/639703a1E898bcb96/6c372c661c6dddfe.png',
status: 1,
link: '/taro/vue/4x/#/zh-CN/guide/intro'
},
{
name: 'NutUI uniapp',
icon: 'https://img13.360buyimg.com/imagetools/jfs/t1/113716/40/39920/321/64c3764dF986d8400/f4474acb3a73c055.png',
status: 1,
link: 'https://ext.dcloud.net.cn/search?q=nutui'
}
]
}
];
if ((import.meta as any).env.BASE_URL.includes('react')) {
config = {
...reactConfig,
...SiteReact
};
}
}

export const {
nav,
Expand All @@ -298,9 +168,5 @@ export {
guide,
moreGuide,
reactGuide,
reactTaroGuide,
reactNativeGuide,
businessGuide,
products,
SiteReactTaro,
};
Loading