Skip to content

Commit

Permalink
remove home notification, templates link landing
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Jan 31, 2019
1 parent 5e94321 commit e6ddf9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/theme/template/Home/Banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class Banner extends React.PureComponent {
</Link>
<a
className={`${this.props.className}-text-button template`}
href="/edit#t%3Dnav_0_0%2Ccontent_0_0%2Ccontent_2_0%2Ccontent_3_0%2Ccontent_4_0%2Cfooter_0_0"
href="https://landing.ant.design/edit/"
target="_blank"
>
快速搭建<i />
Expand Down
18 changes: 0 additions & 18 deletions src/theme/template/Layout/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
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';
Expand Down Expand Up @@ -31,23 +30,6 @@ class Index extends React.PureComponent {
isMobile: !!b,
});
});
const args = {
message: '编辑器下线通知',
description: (
<div>
<a href="https://landing.ant.design">Ant Design Landing</a>
{' '}
测试版已经上线,本网站的模板编辑系统将会下线,请移至
{' '}
<a href="https://landing.ant.design">Ant Design Landing</a>
{' '}
重新编辑你的网页。
</div>
),
duration: 0,
placement: 'bottomLeft',
};
notification.info(args);
}

onChange = (e) => {
Expand Down
8 changes: 1 addition & 7 deletions src/theme/template/Layout/nav.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
/**
* Created by jljsj on 16/8/18.
*/
const location = window.location;
const protocol = location.protocol;
const isLocalMode = location.port;
const port = isLocalMode ? ':8112' : '';
const mainPath = isLocalMode ? '' : '/edit';
const href = `${protocol}//${location.hostname}${port}${mainPath}`;

export default [
{ name: '动效展示', href: '/exhibition/', key: 'exhibition' },
Expand All @@ -15,7 +9,7 @@ export default [
{ name: 'API', href: '/api/tween-one', key: 'api' },
{
name: '动效模板',
href: `${href}/#t%3Dnav_0_0%2Ccontent_0_0%2Ccontent_2_0%2Ccontent_3_0%2Ccontent_4_0%2Cfooter_0_0`,
href: 'https://landing.ant.design',
key: 'cases',
open: true,
},
Expand Down

0 comments on commit e6ddf9f

Please sign in to comment.