forked from TuGraph-family/tugraph-site
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.umirc.ts
114 lines (113 loc) · 3.5 KB
/
.umirc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { defineConfig } from 'umi';
import { DEFAULT_LOCAL } from './src/constant';
export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
title: 'TuGraph the high-performance graph database',
favicon:
'https://gw.alipayobjects.com/zos/bmw-prod/6290edfc-e134-4074-a550-079eeba9926d.svg',
routes: [
{ path: '/', component: '@/pages/index' },
{ path: '/product', component: '@/pages/product', title: 'product.title' },
{
path: '/learn',
component: '@/pages/product_learn',
title: 'product.title',
},
{
path: '/analytics',
component: '@/pages/product_analytics',
title: 'product.title',
},
{ path: '/case', component: '@/pages/case', title: 'case.title' },
{
path: '/ecosystem',
component: '@/pages/ecosystem',
title: 'ecosystem.title',
},
{ path: '/doc', component: '@/pages/doc', title: 'doc.title' },
{ path: '/blog', component: '@/pages/blog', title: 'blog.title' },
{
path: '/download',
component: '@/pages/download',
title: 'download.title',
},
{
path: '/overview',
component: '@/pages/overview',
title: 'product.title',
},
{
path: '/platform',
component: '@/pages/platform',
title: 'platform.title',
},
{
path: '/db',
component: '@/pages/platform',
title: 'db.title',
},
],
scripts: [
`var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?e4bea71987c7daae77ee69586aad5bec";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();`,
{
src: 'https://www.googletagmanager.com/gtag/js?id=AW-11092859162',
async: true,
},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-11092859162');`,
`var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?9452f06d5325a3907efec5619d9f2392";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();`,
{
src: 'https://ur.alipay.com/tracert_a4609.js',
async: true,
},
` window.TracertCmdCache=window.TracertCmdCache||[]
;var t=window.Tracert||{_isRenderInit:!0,call:function(){window.TracertCmdCache.push(arguments)}},f=["call","start","config","logPv","info","err","click","expo","pageName","pageState","time","timeEnd","parse","checkExpo","stringify","report","set","before"];for(let i=0;i<f.length;i++){(function(fn){t[fn]=function(){var a=[],l=arguments.length;for (var j=0;j<l;j++) {a.push(arguments[j])}a.unshift(fn);window.TracertCmdCache.push(a)}})(f[i])}window.Tracert=t;
window._to={autoLogPv:false};
window.Tracert.start({});`,
],
theme: {
'primary-color': 'rgba(22,80,255,1)',
},
chainWebpack(memo, { env, webpack }) {
memo.module
.rule('plaintext')
.test(/\.(txt|text)$/)
.use('raw-loader')
.loader(require.resolve('raw-loader'));
memo.module
.rule('markdown')
.test(/\.md$/)
.use('frontmatter-markdown-loader')
.loader('frontmatter-markdown-loader');
},
exportStatic: {},
fastRefresh: {},
request: {
dataField: '',
},
hash: true,
locale: {
antd: true,
baseNavigator: false,
baseSeparator: '-',
title: true,
default: DEFAULT_LOCAL,
useLocalStorage: false,
},
});