mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
site: update dependencies
This commit is contained in:
parent
06403c560d
commit
b685a31f96
@ -100,7 +100,7 @@
|
||||
"gh-pages": "^0.11.0",
|
||||
"history": "^2.0.1",
|
||||
"jest-cli": "^0.10.0",
|
||||
"jsonml-to-react-component": "~0.1.0",
|
||||
"jsonml-to-react-component": "~0.2.0",
|
||||
"jsonml.js": "^0.1.0",
|
||||
"jsonp": "^0.2.0",
|
||||
"lesshint": "^1.2.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { Modal, Carousel } from '../../../';
|
||||
import { Modal, Carousel } from 'antd';
|
||||
|
||||
function isGood(className) {
|
||||
return /\bgood\b/i.test(className);
|
||||
|
@ -48,7 +48,7 @@ export default class Article extends React.Component {
|
||||
return (
|
||||
<li key={node[1]}>
|
||||
<Link to={{ pathname: location.pathname, query: { scrollTo: node[1] } }}>
|
||||
{toReactComponent([], node[1])}
|
||||
{toReactComponent(node[1])}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import classNames from 'classnames';
|
||||
import { Row, Col, Icon, Affix } from '../../../';
|
||||
import { Row, Col, Icon, Affix } from 'antd';
|
||||
import Demo from '../Demo';
|
||||
import * as utils from '../utils';
|
||||
import demosList from '../../../_data/demos-list';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Select } from '../../../';
|
||||
import { Select } from 'antd';
|
||||
import { version as antdVersion } from '../../../package.json';
|
||||
import { docVersions } from '../../website.config';
|
||||
const Option = Select.Option;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import enquire from 'enquire.js';
|
||||
import { Select, Menu, Row, Col, Icon } from '../../../';
|
||||
import { Select, Menu, Row, Col, Icon } from 'antd';
|
||||
const Option = Select.Option;
|
||||
|
||||
import './index.less';
|
||||
|
@ -4,7 +4,7 @@ import ScrollElement from 'rc-scroll-anim/lib/ScrollElement';
|
||||
import TweenOne from 'rc-tween-one';
|
||||
import GitHubButton from 'react-github-button';
|
||||
import 'react-github-button/assets/style.css';
|
||||
import { Icon } from '../../../';
|
||||
import { Icon } from 'antd';
|
||||
import QueueAnim from 'rc-queue-anim';
|
||||
|
||||
export default class Banner extends React.Component {
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import TweenOne from 'rc-tween-one';
|
||||
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
|
||||
import { Icon, Button } from '../../../';
|
||||
import { Icon, Button } from 'antd';
|
||||
import QueueAnim from 'rc-queue-anim';
|
||||
|
||||
const clientHeight = document.documentElement.clientHeight;
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import TweenOne from 'rc-tween-one';
|
||||
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
|
||||
import { Icon, Button } from '../../../';
|
||||
import { Icon, Button } from 'antd';
|
||||
import QueueAnim from 'rc-queue-anim';
|
||||
|
||||
export default class Page2 extends React.Component {
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import TweenOne from 'rc-tween-one';
|
||||
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
|
||||
import { Icon, Button } from '../../../';
|
||||
import { Icon, Button } from 'antd';
|
||||
import QueueAnim from 'rc-queue-anim';
|
||||
|
||||
export default class Page3 extends React.Component {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
import { Icon } from '../../../';
|
||||
import { Icon } from 'antd';
|
||||
|
||||
export default class CopyableIcon extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import scrollIntoView from 'dom-scroll-into-view';
|
||||
import { Row, Col, Menu } from '../../../';
|
||||
import { Row, Col, Menu } from 'antd';
|
||||
import config from '../../website.config';
|
||||
const SubMenu = Menu.SubMenu;
|
||||
|
||||
|
@ -9,7 +9,7 @@ function isHeading(type) {
|
||||
}
|
||||
|
||||
export function jsonmlToComponent(pathname, jsonml) {
|
||||
return toReactComponent([
|
||||
return toReactComponent(jsonml, [
|
||||
[(node) => React.isValidElement(node), (node, index) => {
|
||||
return React.cloneElement(node, { key: index });
|
||||
}],
|
||||
@ -23,11 +23,11 @@ export function jsonmlToComponent(pathname, jsonml) {
|
||||
id: children,
|
||||
...getAttributes(node),
|
||||
}, [
|
||||
<span key="title">{ children.map(toReactComponent.bind(null, [])) }</span>,
|
||||
<span key="title">{ children.map((child) => toReactComponent(child)) }</span>,
|
||||
<Link to={{ pathname, query: { scrollTo: children } }} className="anchor" key="anchor">#</Link>,
|
||||
]);
|
||||
}],
|
||||
], jsonml);
|
||||
]);
|
||||
}
|
||||
|
||||
export function setTitle(title) {
|
||||
|
Loading…
Reference in New Issue
Block a user