mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
new pub notification
This commit is contained in:
parent
0b31c256e3
commit
c6f4b38471
@ -66,10 +66,10 @@ module.exports = {
|
|||||||
'app.footer.commitment': 'Our Commitment to Customer Protection',
|
'app.footer.commitment': 'Our Commitment to Customer Protection',
|
||||||
'app.footer.company': 'Ant Financial',
|
'app.footer.company': 'Ant Financial',
|
||||||
'app.footer.ant-design': 'UI Design Language',
|
'app.footer.ant-design': 'UI Design Language',
|
||||||
'app.publish.title': 'antd@2.0.0 is released!',
|
'app.publish.title': 'antd@3.0.0 is released!',
|
||||||
'app.publish.greeting': 'Hello, ',
|
'app.publish.greeting': 'Hello, ',
|
||||||
'app.publish.intro': ' is released, and please upgrade. ',
|
'app.publish.intro': ' is released, and please upgrade. ',
|
||||||
'app.publish.old-version-guide': 'If you want to read old version documentation, please visit ',
|
'app.publish.old-version-guide': 'If you want to read old version documentation, please visit ',
|
||||||
'app.publish.old-version-tips': ', or change the version of documentation with the bottom-right selector.',
|
'app.publish.old-version-tips': ', or change the version of documentation with the top-right selector.',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -25,8 +25,8 @@ class Footer extends React.Component {
|
|||||||
// 1. 点击『知道了』之后不再提示
|
// 1. 点击『知道了』之后不再提示
|
||||||
// 2. 超过截止日期后不再提示
|
// 2. 超过截止日期后不再提示
|
||||||
if (
|
if (
|
||||||
localStorage.getItem('antd@2.0.0-notification-sent') !== 'true' &&
|
localStorage.getItem('antd@3.0.0-notification-sent') !== 'true' &&
|
||||||
Date.now() < new Date('2016/10/14').getTime()
|
Date.now() < new Date('2017/12/20').getTime()
|
||||||
) {
|
) {
|
||||||
this.infoNewVersion();
|
this.infoNewVersion();
|
||||||
}
|
}
|
||||||
@ -64,19 +64,19 @@ class Footer extends React.Component {
|
|||||||
title: messages['app.publish.title'],
|
title: messages['app.publish.title'],
|
||||||
content: (
|
content: (
|
||||||
<div>
|
<div>
|
||||||
<img src="https://os.alipayobjects.com/rmsportal/nyqBompsynAQCpJ.svg" alt="Ant Design" />
|
<img src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" alt="Ant Design" />
|
||||||
<p>
|
<p>
|
||||||
{messages['app.publish.greeting']}
|
{messages['app.publish.greeting']}
|
||||||
<a target="_blank" rel="noopener noreferrer" href="/changelog">antd@2.0.0</a>
|
<a target="_blank" rel="noopener noreferrer" href="/changelog">antd@3.0.0</a>
|
||||||
{messages['app.publish.intro']}
|
{messages['app.publish.intro']}
|
||||||
{messages['app.publish.old-version-guide']}
|
{messages['app.publish.old-version-guide']}
|
||||||
<a target="_blank" rel="noopener noreferrer" href="http://1x.ant.design">1x.ant.design</a>
|
<a target="_blank" rel="noopener noreferrer" href="http://2x.ant.design">2x.ant.design</a>
|
||||||
{messages['app.publish.old-version-tips']}
|
{messages['app.publish.old-version-tips']}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
okText: 'OK',
|
okText: 'OK',
|
||||||
onOk: () => localStorage.setItem('antd@2.0.0-notification-sent', 'true'),
|
onOk: () => localStorage.setItem('antd@3.0.0-notification-sent', 'true'),
|
||||||
className: 'new-version-info-modal',
|
className: 'new-version-info-modal',
|
||||||
width: 470,
|
width: 470,
|
||||||
});
|
});
|
||||||
|
@ -66,10 +66,10 @@ module.exports = {
|
|||||||
'app.footer.commitment': '权益保障承诺书',
|
'app.footer.commitment': '权益保障承诺书',
|
||||||
'app.footer.company': '蚂蚁金融服务集团',
|
'app.footer.company': '蚂蚁金融服务集团',
|
||||||
'app.footer.ant-design': '蚂蚁 UI 体系',
|
'app.footer.ant-design': '蚂蚁 UI 体系',
|
||||||
'app.publish.title': 'antd@2.0.0 发布!',
|
'app.publish.title': 'antd@3.0.0 发布!',
|
||||||
'app.publish.greeting': '你好,',
|
'app.publish.greeting': '你好,',
|
||||||
'app.publish.intro': ' 已正式发布,欢迎升级。',
|
'app.publish.intro': ' 已正式发布,欢迎升级。',
|
||||||
'app.publish.old-version-guide': '如果您还需要使用旧版,请查阅 ',
|
'app.publish.old-version-guide': '如果您还需要使用旧版,请查阅 ',
|
||||||
'app.publish.old-version-tips': ',也可通过页面右下角的文档版本选择框进行切换。',
|
'app.publish.old-version-tips': ',也可通过页面右上角的文档版本选择框进行切换。',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user