Skip to content

Commit ad46763

Browse files
authored
feat: new website (#152)
* feat:Remove redundant code * feat: Page transformation * feat: change partners page * feat: legacy items
1 parent 8cef361 commit ad46763

283 files changed

Lines changed: 6344 additions & 23491 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.umirc.ts

Lines changed: 82 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -9,131 +9,86 @@ export default defineConfig({
99
favicon:
1010
'https://gw.alipayobjects.com/zos/bmw-prod/6290edfc-e134-4074-a550-079eeba9926d.svg',
1111
routes: [
12-
// { path: '/', component: '@/pages/index' },
13-
// { path: '/product', component: '@/pages/product', title: 'product.title' },
14-
// {
15-
// path: '/learn',
16-
// component: '@/pages/product_learn',
17-
// title: 'product.title',
18-
// },
19-
// {
20-
// path: '/analytics',
21-
// component: '@/pages/product_analytics',
22-
// title: 'product.title',
23-
// },
24-
// { path: '/case', component: '@/pages/case', title: 'case.title' },
25-
// {
26-
// path: '/ecosystem',
27-
// component: '@/pages/ecosystem',
28-
// title: 'ecosystem.title',
29-
// },
30-
// { path: '/doc', component: '@/pages/doc', title: 'doc.title' },
31-
// { path: '/blog', component: '@/pages/blog', title: 'blog.title' },
32-
// {
33-
// path: '/download',
34-
// component: '@/pages/download',
35-
// title: 'download.title',
36-
// },
37-
// {
38-
// path: '/overview',
39-
// component: '@/pages/overview',
40-
// title: 'product.title',
41-
// },
42-
// {
43-
// path: '/platform',
44-
// component: '@/pages/platform',
45-
// title: 'platform.title',
46-
// },
47-
// {
48-
// path: '/db',
49-
// component: '@/pages/platform',
50-
// title: 'db.title',
51-
// },
52-
// {
53-
// path: '/docs/*',
54-
// component: '@/pages/docs',
55-
// title: 'docs.title',
56-
// },
57-
// {
58-
// path: '/docs',
59-
// component: '@/pages/docs',
60-
// title: 'docs.title',
61-
// },
62-
// new pages
6312
{
6413
path: '/',
65-
component: '@/pages/new-pages/Home',
66-
},
67-
{
68-
path: '/product',
69-
component: '@/pages/new-pages/Product',
70-
title: 'product.title',
71-
},
72-
{
73-
path: '/product/*',
74-
component: '@/pages/new-pages/Product',
75-
title: 'product.title',
76-
},
77-
{
78-
path: '/case',
79-
component: '@/pages/new-pages/Case',
80-
title: 'case.title',
81-
},
82-
{
83-
path: '/partners',
84-
component: '@/pages/new-pages/Partners',
85-
},
86-
{
87-
path: '/docs',
88-
component: '@/pages/new-pages/Docs',
89-
title: 'docs.title',
90-
},
91-
{
92-
path: '/docs/*',
93-
component: '@/pages/new-pages/Docs',
94-
title: 'docs.title',
95-
},
96-
{
97-
path: '/download',
98-
component: '@/pages/new-pages/Download',
99-
title: 'download.title',
100-
},
101-
{
102-
path: '/blog/list',
103-
component: '@/pages/new-pages/Blog/list',
104-
title: 'blog.title',
105-
},
106-
{
107-
path: '/blog/info/*',
108-
component: '@/pages/new-pages/Blog/info',
109-
},
110-
{
111-
path: '/blog/info',
112-
component: '@/pages/new-pages/Blog/info',
113-
},
114-
{
115-
path: '/activity/list',
116-
component: '@/pages/new-pages/Activity/list',
117-
},
118-
{
119-
path: '/activity/info',
120-
component: '@/pages/new-pages/Activity/info',
121-
},
122-
{
123-
path: '/activity/info/*',
124-
component: '@/pages/new-pages/Activity/info',
125-
},
126-
{
127-
path: '/video/home',
128-
component: '@/pages/new-pages/Video/home',
129-
},
130-
{
131-
path: '/video/list',
132-
component: '@/pages/new-pages/Video/list',
133-
},
134-
{
135-
path: '/video/info/*',
136-
component: '@/pages/new-pages/Video/info',
14+
component: '@/layouts/index',
15+
routes: [
16+
{
17+
path: '/',
18+
component: '@/pages/Home',
19+
},
20+
{
21+
path: '/product',
22+
component: '@/pages/Product',
23+
title: 'product.title',
24+
},
25+
{
26+
path: '/product/*',
27+
component: '@/pages/Product',
28+
title: 'product.title',
29+
},
30+
{
31+
path: '/case',
32+
component: '@/pages/Case',
33+
title: 'case.title',
34+
},
35+
{
36+
path: '/partners',
37+
component: '@/pages/Partners',
38+
},
39+
{
40+
path: '/docs',
41+
component: '@/pages/Docs',
42+
title: 'docs.title',
43+
},
44+
{
45+
path: '/docs/*',
46+
component: '@/pages/Docs',
47+
title: 'docs.title',
48+
},
49+
{
50+
path: '/download',
51+
component: '@/pages/Download',
52+
title: 'download.title',
53+
},
54+
{
55+
path: '/blog/list',
56+
component: '@/pages/Blog/list',
57+
title: 'blog.title',
58+
},
59+
{
60+
path: '/blog/info/*',
61+
component: '@/pages/Blog/info',
62+
},
63+
{
64+
path: '/blog/info',
65+
component: '@/pages/Blog/info',
66+
},
67+
{
68+
path: '/activity/list',
69+
component: '@/pages/Activity/list',
70+
},
71+
{
72+
path: '/activity/info',
73+
component: '@/pages/Activity/info',
74+
},
75+
{
76+
path: '/activity/info/*',
77+
component: '@/pages/Activity/info',
78+
},
79+
{
80+
path: '/video/home',
81+
component: '@/pages/Video/home',
82+
},
83+
{
84+
path: '/video/list',
85+
component: '@/pages/Video/list',
86+
},
87+
{
88+
path: '/video/info/*',
89+
component: '@/pages/Video/info',
90+
},
91+
],
13792
},
13893
],
13994
scripts: [
@@ -148,6 +103,7 @@ export default defineConfig({
148103
src: 'https://www.googletagmanager.com/gtag/js?id=AW-11092859162',
149104
async: true,
150105
},
106+
`window.TUGRAPH_UNICORN_FOOTER_PROJECT = "2vXUY5TYl56AhqFP953l";`,
151107
`window.dataLayer = window.dataLayer || [];
152108
function gtag(){dataLayer.push(arguments);}
153109
gtag('js', new Date());
@@ -229,4 +185,7 @@ export default defineConfig({
229185
'width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0',
230186
},
231187
],
188+
antd: {
189+
dark: true,
190+
},
232191
});

src/app.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { ConfigProvider } from 'antd';
2+
import zhCN from 'antd/es/locale/zh_CN';
3+
4+
export function rootContainer(container: React.ReactNode) {
5+
return (
6+
<ConfigProvider
7+
locale={zhCN}
8+
theme={{
9+
token: {
10+
// 暗黑主题核心配置
11+
colorBgBase: '#141415',
12+
colorTextBase: 'rgba(255, 255, 255, 0.85)',
13+
colorPrimary: '#1650ff',
14+
},
15+
}}
16+
>
17+
{container}
18+
</ConfigProvider>
19+
);
20+
}

src/components/AdBox/index.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
.constent {
1919
color: #fff;
20-
font-family: 'PuHuiTi55';
2120
font-size: 14px;
2221
line-height: 36px;
2322
display: flex;

0 commit comments

Comments
 (0)