2016-02-29 14:08:40 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-09-08 20:38:08 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2016-12-05 16:54:56 +08:00
|
|
|
<meta name="description" content="An enterprise-class UI design language and React-based implementation">
|
|
|
|
<meta name="description" content="A set of high-quality React components">
|
|
|
|
<meta name="description" content="One of best React UI library for enterprise background">
|
2016-10-16 16:21:56 +08:00
|
|
|
<title>Ant Design - One Design Language</title>
|
2016-09-08 20:38:08 +08:00
|
|
|
<link rel="icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
|
2016-09-29 14:17:42 +08:00
|
|
|
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.cnpmjs.org/css?family=Lato:400,700|Raleway"/>
|
2016-09-14 14:21:13 +08:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ root }}index-1.css"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ root }}index-2.css"/>
|
2016-09-08 20:38:08 +08:00
|
|
|
<!--[if lte IE 10]>
|
|
|
|
<script
|
|
|
|
src="https://as.alipayobjects.com/g/component/??console-polyfill/0.2.2/index.js,media-match/2.0.2/media.match.min.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
<script>
|
|
|
|
if (!window.Intl) {
|
|
|
|
document.writeln('<script src="https://as.alipayobjects.com/g/component/intl/1.0.1/??Intl.js,locale-data/jsonp/en.js,locale-data/jsonp/zh.js">' + '<' + '/script>');
|
|
|
|
}
|
|
|
|
if (!window.Promise) {
|
|
|
|
document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
|
2016-06-12 21:34:37 +08:00
|
|
|
}
|
2016-09-08 20:38:08 +08:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2016-12-09 13:02:16 +08:00
|
|
|
<div id="react-content">
|
2016-11-21 14:39:15 +08:00
|
|
|
{{ content | safe }}
|
|
|
|
</div>
|
|
|
|
<script>
|
2016-12-09 13:02:16 +08:00
|
|
|
function isZhCN(pathname) {
|
|
|
|
return /-cn\/?$/.test(pathname);
|
|
|
|
}
|
|
|
|
function getLocalizedPathname(path, zhCN) {
|
|
|
|
var pathname = path.startsWith('/') ? path : '/' + path;
|
|
|
|
if (!zhCN) { // to enUS
|
|
|
|
return /\/?index-cn/.test(pathname) ? '/' : pathname.replace('-cn', '');
|
|
|
|
} else if (pathname === '/') {
|
|
|
|
return '/index-cn';
|
|
|
|
} else if (pathname.endsWith('/')) {
|
|
|
|
return pathname.replace(/\/$/, '-cn/');
|
|
|
|
}
|
|
|
|
return pathname + '-cn';
|
|
|
|
}
|
|
|
|
var queryString = location.search;
|
|
|
|
if (queryString) {
|
|
|
|
var pathname = location.pathname;
|
|
|
|
var isZhCNConfig = queryString.indexOf('zh-CN') > -1;
|
|
|
|
if (isZhCNConfig !== isZhCN(pathname)) {
|
|
|
|
location.pathname = getLocalizedPathname(pathname, isZhCNConfig)
|
2016-11-21 14:39:15 +08:00
|
|
|
}
|
2016-12-09 13:02:16 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<script>
|
2016-09-08 20:38:08 +08:00
|
|
|
// Enable Google Analytics
|
|
|
|
if (!location.port) {
|
|
|
|
/* eslint-disable */
|
|
|
|
(function (i, s, o, g, r, a, m) {
|
|
|
|
i['GoogleAnalyticsObject'] = r;
|
|
|
|
i[r] = i[r] || function () {
|
|
|
|
(i[r].q = i[r].q || []).push(arguments)
|
|
|
|
}, i[r].l = 1 * new Date();
|
|
|
|
a = s.createElement(o),
|
|
|
|
m = s.getElementsByTagName(o)[0];
|
|
|
|
a.async = 1;
|
|
|
|
a.src = g;
|
|
|
|
m.parentNode.insertBefore(a, m)
|
|
|
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
|
|
|
ga('create', 'UA-72788897-1', 'auto');
|
|
|
|
ga('send', 'pageview');
|
|
|
|
/* eslint-enable */
|
|
|
|
}
|
2016-11-21 14:39:15 +08:00
|
|
|
</script>
|
|
|
|
<script src="{{ root }}common.js"></script>
|
|
|
|
<script src="{{ root }}index.js"></script>
|
2016-09-08 20:38:08 +08:00
|
|
|
</body>
|
2016-02-29 14:08:40 +08:00
|
|
|
</html>
|