From 505c586fc565aeabcac42f8bc6a111c575ad0545 Mon Sep 17 00:00:00 2001 From: jljsj33 Date: Wed, 7 Nov 2018 16:03:25 +0800 Subject: [PATCH] add edit downline announcement --- README.cn.md | 2 ++ README.md | 4 ++++ package.json | 2 +- src/edit/template/index.jsx | 20 +++++++++++++++++++- src/theme/template/Layout/Footer.jsx | 5 +++++ src/theme/template/Layout/index.jsx | 18 ++++++++++++++++++ 6 files changed, 49 insertions(+), 2 deletions(-) diff --git a/README.cn.md b/README.cn.md index 37d3bcf4..134252b1 100644 --- a/README.cn.md +++ b/README.cn.md @@ -48,6 +48,8 @@ Ant Motion 在界面里主要是来加强体验舒适度、描述层级关系、 ## 首页的解决方案 +Landing 已正式上线,[更多请查看](https://landing.ant.design). 🎉🎉🎉 + 这是以 Ant Motion 的 React 组件遵从 Ant Design 的视觉规范来完成的 demo 页面,可灵活又快速的配置出你想要的首页模板。 主要提供了单元素示例与配置完后的整页示例。 diff --git a/README.md b/README.md index f8b41e10..ddb31abf 100644 --- a/README.md +++ b/README.md @@ -55,12 +55,16 @@ Ant Motion is an abstraction interface mainly intended to enhance the comfortnes ## Landing page solution +Landing Formally launched, [more](https://landing.ant.design). 🎉🎉🎉 + This is based on the Ant Motion React components to follow with the design specifications of Ant Design to complete the demo page, you can quickly and flexibly configure the page template you want. It provides a single-element example and a full-page example after configuration. [ant-motion-dva-cli-example](https://github.com/ant-motion/ant-motion-dva-cli-example) +[umi-example](https://github.com/ant-motion/landing-umi-example) + [More details](http://t.cn/RIGA89W) ## Develop diff --git a/package.json b/package.json index e5ff29a9..3899652e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ant-motion", - "version": "1.6.2", + "version": "1.6.3", "dependencies": { "antd": "~3.6.2", "deepcopy": "^0.6.3", diff --git a/src/edit/template/index.jsx b/src/edit/template/index.jsx index 18ef1cdd..63415b0e 100644 --- a/src/edit/template/index.jsx +++ b/src/edit/template/index.jsx @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import { Modal } from 'antd'; +import { Modal, notification } from 'antd'; import NavController from './components/NavController'; import ContentController from './components/ContentController'; import EditStateController from './components/EditStateController'; @@ -30,6 +30,24 @@ class Edit extends React.Component { } componentDidMount() { + const args = { + message: '编辑器下线通知', + description: ( +
+ Ant Deisng Landing + {' '} + 测试版已经上线,本网站的模板编辑系统将会下线,请移至 + {' '} + Ant Deisng Landing + {' '} + 重新编辑你的网页。 +
+ ), + duration: 0, + placement: 'bottomLeft', + }; + notification.warning(args); + $('#preview').load(() => { this.setState({ iframeHeight: $('#preview').contents().height(), diff --git a/src/theme/template/Layout/Footer.jsx b/src/theme/template/Layout/Footer.jsx index bdc43f84..0c4e5a1f 100644 --- a/src/theme/template/Layout/Footer.jsx +++ b/src/theme/template/Layout/Footer.jsx @@ -40,6 +40,11 @@ function Footer() { - 移动端 +
+ Ant Design Landing + - + 首页模板 +
dva - diff --git a/src/theme/template/Layout/index.jsx b/src/theme/template/Layout/index.jsx index 3211ecc4..671b6788 100644 --- a/src/theme/template/Layout/index.jsx +++ b/src/theme/template/Layout/index.jsx @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; +import { notification } from 'antd'; import TweenOne from 'rc-tween-one'; import { enquireScreen } from 'enquire-js'; import Header from './Header'; @@ -30,6 +31,23 @@ class Index extends React.PureComponent { isMobile: !!b, }); }); + const args = { + message: '编辑器下线通知', + description: ( +
+ Ant Deisng Landing + {' '} + 测试版已经上线,本网站的模板编辑系统将会下线,请移至 + {' '} + Ant Deisng Landing + {' '} + 重新编辑你的网页。 +
+ ), + duration: 0, + placement: 'bottomLeft', + }; + notification.warning(args); } onChange = (e) => {