Browse Source

site: update dependencies

pull/1379/merge
Benjy Cui 9 years ago
parent
commit
b685a31f96
  1. 2
      package.json
  2. 2
      site/component/Article/ImagePreview.jsx
  3. 2
      site/component/Article/index.jsx
  4. 2
      site/component/ComponentDoc/index.jsx
  5. 2
      site/component/Footer/index.jsx
  6. 2
      site/component/Header/index.jsx
  7. 2
      site/component/Home/Banner.jsx
  8. 2
      site/component/Home/Page1.jsx
  9. 2
      site/component/Home/Page2.jsx
  10. 2
      site/component/Home/Page3.jsx
  11. 2
      site/component/IconSet/CopyableIcon.jsx
  12. 2
      site/component/MainContent/index.jsx
  13. 6
      site/component/utils.js

2
package.json

@ -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",

2
site/component/Article/ImagePreview.jsx

@ -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);

2
site/component/Article/index.jsx

@ -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>
);

2
site/component/ComponentDoc/index.jsx

@ -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';

2
site/component/Footer/index.jsx

@ -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;

2
site/component/Header/index.jsx

@ -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';

2
site/component/Home/Banner.jsx

@ -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
site/component/Home/Page1.jsx

@ -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
site/component/Home/Page2.jsx

@ -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
site/component/Home/Page3.jsx

@ -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 {

2
site/component/IconSet/CopyableIcon.jsx

@ -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) {

2
site/component/MainContent/index.jsx

@ -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;

6
site/component/utils.js

@ -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…
Cancel
Save