Skip to content

Commit 58794aa

Browse files
committed
docs: update docs
1 parent d0ae9cc commit 58794aa

File tree

8 files changed

+78
-76
lines changed

8 files changed

+78
-76
lines changed

README-zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ant-design-vue是MIT协议的开源项目。为了项目能够更好的持续的
9191
- [Patreon](https://www.patreon.com/tangjinzhou)
9292
- [opencollective](https://opencollective.com/ant-design-vue)
9393
- [paypal](https://www.paypal.me/tangjinzhou)
94-
- [支付宝或微信](https://user-images.githubusercontent.com/6937879/43032487-932a5536-8cea-11e8-9175-9c006e938a82.png)
94+
- [支付宝或微信](https://cdn.nlark.com/yuque/0/2019/png/87084/1548485701785-assets/web-upload/648ca181-a52f-4382-957c-97c5dbb3e1cc.png)
9595

9696
## Backers
9797

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ ant-design-vue is an MIT-licensed open source project. In order to achieve bette
8686
- [Patreon](https://www.patreon.com/tangjinzhou)
8787
- [opencollective](https://opencollective.com/ant-design-vue)
8888
- [paypal](https://www.paypal.me/tangjinzhou)
89-
- [支付宝或微信](https://user-images.githubusercontent.com/6937879/43032487-932a5536-8cea-11e8-9175-9c006e938a82.png)
89+
- [支付宝或微信](https://cdn.nlark.com/yuque/0/2019/png/87084/1548485701785-assets/web-upload/648ca181-a52f-4382-957c-97c5dbb3e1cc.png)
9090

9191
## Backers
9292

docs/vue/sponsor.en-US.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We accept donations through these channels:
88
<div>
99
<a href="https://www.paypal.me/tangjinzhou" target="_blank">PayPal</a>
1010
<br/>
11-
<a href="https://user-images.githubusercontent.com/6937879/43032487-932a5536-8cea-11e8-9175-9c006e938a82.png" target="_blank">Alipay or WeChat</a>
11+
<a href="https://cdn.nlark.com/yuque/0/2019/png/87084/1548485701785-assets/web-upload/648ca181-a52f-4382-957c-97c5dbb3e1cc.png" target="_blank">Alipay or WeChat</a>
1212
</div>
1313

1414
## Recurring Pledges
@@ -66,4 +66,4 @@ Support us with a monthly donation and help us continue our activities. [[Become
6666

6767
If you run a business and are using Ant Design Vue in a revenue-generating product, it makes business sense to sponsor Ant Design Vue development: it ensures the project that your product relies on stays healthy and actively maintained. It can also help your exposure in the Vue community and makes it easier to attract Vue developers.
6868

69-
If you are an individual user and have enjoyed the productivity of using Ant Design Vue, consider donating as a sign of appreciation - like buying me coffee once in a while :)
69+
If you are an individual user and have enjoyed the productivity of using Ant Design Vue, consider donating as a sign of appreciation - like buying me coffee once in a while :)

docs/vue/sponsor.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ant-design-vue 是采用 MIT 许可的开源项目,使用完全免费。 但
88
<div>
99
<a href="https://www.paypal.me/tangjinzhou" target="_blank">PayPal</a>
1010
<br/>
11-
<a href="https://user-images.githubusercontent.com/6937879/43032487-932a5536-8cea-11e8-9175-9c006e938a82.png" target="_blank">支付宝或微信</a>
11+
<a href="https://cdn.nlark.com/yuque/0/2019/png/87084/1548485701785-assets/web-upload/648ca181-a52f-4382-957c-97c5dbb3e1cc.png" target="_blank">支付宝或微信</a>
1212
</div>
1313

1414
## 周期性赞助
@@ -67,4 +67,4 @@ Support us with a monthly donation and help us continue our activities. [[Become
6767

6868
如果你是企业经营者并且将 Ant Design Vue 用在商业产品中,那么赞助 Ant Design Vue 有商业上的益处:可以让你的产品所依赖的框架保持健康并得到积极的维护,也能帮助你在 Vue 社区里获得更高的曝光度,从而更容易地吸引到 Vue 开发者。
6969

70-
如果你是个人开发者并且享受 Ant Design Vue 带来的高开发效率,可以用捐助来表示你的谢意 —— 就好像偶尔给我买杯咖啡 :)
70+
如果你是个人开发者并且享受 Ant Design Vue 带来的高开发效率,可以用捐助来表示你的谢意 —— 就好像偶尔给我买杯咖啡 :)

site/components/CarbonAds.vue

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,43 @@
11
<script>
2+
import axios from 'axios';
23
const carbonUrls = {
34
'vuecomponent.github.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio',
45
'tangjinzhou.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=tangjinzhougiteeio',
56
};
6-
const carbonUrl = carbonUrls[location.host];
7+
const carbonUrl = '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio' || carbonUrls[location.host];
8+
const isGitee = location.host.indexOf('gitee') !== -1;
79
export default {
810
mounted() {
911
this.load();
1012
},
1113
watch: {
1214
$route(e, t) {
13-
if(e.path !== t.path && this.$el.querySelector("#carbonads")){
15+
let adId = '#carbonads';
16+
if(isGitee) {
17+
adId = '#cf';
18+
}
19+
if(e.path !== t.path && this.$el.querySelector(adId)){
1420
this.$el.innerHTML = "";
1521
this.load();
1622
}
1723
this.adInterval && clearInterval(this.adInterval);
1824
this.adInterval = setInterval(()=>{
19-
if(!this.$el.querySelector("#carbonads")){
25+
if(!this.$el.querySelector(adId)){
2026
this.$el.innerHTML = "";
2127
this.load();
2228
}
2329
}, 20000);
30+
2431
},
2532
},
2633
methods: {
2734
load() {
28-
if(carbonUrl) {
35+
if(isGitee) {
36+
axios.get('https://api.codefund.app/properties/162/funder.html?template=horizontal')
37+
.then(function (response) {
38+
document.getElementById("codefund-ads").innerHTML = response.data;
39+
});
40+
} else if(carbonUrl) {
2941
const e = document.createElement("script");
3042
e.id = "_carbonads_js";
3143
e.src = carbonUrl;
@@ -35,7 +47,7 @@ export default {
3547
},
3648
render () {
3749
return (
38-
<div id="carbon-ads"/>
50+
isGitee ? <div id="codefund-ads"/> : <div id="carbon-ads"/>
3951
);
4052
},
4153
};
@@ -44,6 +56,7 @@ export default {
4456
#carbon-ads {
4557
width: 145px;
4658
position: fixed;
59+
z-index: 9;
4760
bottom: 10px;
4861
right: 10px;
4962
padding: 10px;

site/components/header.vue

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
<a-row>
3838
<a-col class='header-left' xxl={4} xl={5} lg={5} md={6} sm={24} xs={24}>
3939
<router-link to={{ path: '/ant-design-vue' }} id='logo'>
40-
<img alt='logo' height='32' src='https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/logo.png' />
40+
<img alt='logo' height='32' src='https://cdn.nlark.com/yuque/0/2019/png/87084/1548485177381-assets/web-upload/d18a622f-08d8-4955-a5c2-38138f80177b.png' />
4141
<span style='color: black;font-size: 16px;font-weight: 400;'>Ant Design Vue</span>
4242
</router-link>
4343
<a-button ghost size='small' onClick={this.handleClick} class='header-lang-button' key='lang-button'>
@@ -76,9 +76,6 @@ export default {
7676
<a-menu-item key='components'>
7777
{isCN ? '组件' : 'Components'}
7878
</a-menu-item>
79-
<a-menu-item key='github'>
80-
<a target="_blank" href='https://github.com/vueComponent/ant-design-vue'>GitHub</a>
81-
</a-menu-item>
8279
<a-sub-menu key="Ecosystem" title={isCN ? '生态系统' : 'Ecosystem'}>
8380
<a-menu-item key="design">
8481
<router-link to={{ path: isCN ? '/ant-design-vue/docs/vue/download-cn/' : '/ant-design-vue/docs/vue/download/'}}>
@@ -95,19 +92,36 @@ export default {
9592
Awesome
9693
</a>
9794
</a-menu-item>
98-
<a-menu-item key='dingding'>
99-
<a-popover placement='bottom'>
95+
<a-menu-item key="github">
96+
<a target="_blank" href='https://github.com/vueComponent/ant-design-vue'>GitHub</a>
97+
</a-menu-item>
98+
<a-menu-item key='wechat'>
99+
<a-popover placement='right'>
100+
<template slot='content'>
101+
<img
102+
width='160'
103+
height='160'
104+
alt='wechat'
105+
src='https://cdn.nlark.com/yuque/0/2019/jpeg/87084/1548484520368-assets/web-upload/28b3f1f9-938a-4bd5-ad2d-0cc4d2c200ed.jpeg'
106+
/>
107+
</template>
108+
<a>
109+
{isCN ? '微信' : 'WeChat'}
110+
</a>
111+
</a-popover>
112+
</a-menu-item>
113+
<a-menu-item key='qq'>
114+
<a-popover placement='right'>
100115
<template slot='content'>
101116
<img
102117
width='160'
103-
height='163'
104-
alt='dingding'
105-
src='https://user-images.githubusercontent.com/4122593/50038786-571eaf80-0060-11e9-98a1-ea202fc60859.png'
118+
height='160'
119+
alt='qq'
120+
src='https://cdn.nlark.com/yuque/0/2019/png/87084/1548484520571-assets/web-upload/ca2259e1-6600-461b-8c5b-31018e8bcc07.png'
106121
/>
107122
</template>
108123
<a>
109-
<a-icon type='dingding' style={{ color: '#1890ff' }}/>
110-
{isCN ? '钉钉服务群' : 'Ding Group QR Code'}
124+
{isCN ? 'QQ(217490093)' : 'QQ(217490093)'}
111125
</a>
112126
</a-popover>
113127
</a-menu-item>

site/components/layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export default {
267267
}
268268
<a-col xxl={20} xl={19} lg={19} md={18} sm={24} xs={24}>
269269
<section class='main-container main-container-component'>
270+
<CarbonAds />
270271
{!isMobile ? <div class='toc-affix' style='width: 120px;'>
271272
{this.getSubMenu(isCN)}
272273
</div> : null}
@@ -302,7 +303,6 @@ export default {
302303
</div>
303304
</a-locale-provider>
304305
{ name.indexOf('back-top') === -1 ? <a-back-top /> : null }
305-
<CarbonAds />
306306
</div>
307307
);
308308
},

site/index.html

Lines changed: 28 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,35 @@
11
<!doctype html>
22
<html>
3-
43
<head>
5-
<meta charset="utf-8">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
9-
<meta http-equiv="Pragma" content="no-cache">
10-
<meta http-equiv="Expires" content="0">
11-
<meta name="description" content="An enterprise-class UI components based on Ant Design and Vue">
12-
<title>Ant Design Vue</title>
13-
<link rel="icon" type="image/x-icon" href="https://raw.githubusercontent.com/vueComponent/ant-design-vue/master/logo.png">
14-
<style id="nprogress-style">
15-
#nprogress {
16-
display: none;
17-
}
18-
</style>
19-
<script>
20-
var _hmt = _hmt || [];
21-
var isGithub = location.host.indexOf('github') !== -1;
22-
var src = isGithub ? 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d';
23-
(function() {
24-
var hm = document.createElement('script');
25-
hm.src = src;
26-
var s = document.getElementsByTagName('script')[0];
27-
s.parentNode.insertBefore(hm, s);
28-
})()
29-
</script>
30-
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
8+
<meta http-equiv="Pragma" content="no-cache">
9+
<meta http-equiv="Expires" content="0">
10+
<meta name="description" content="An enterprise-class UI components based on Ant Design and Vue">
11+
<title>Ant Design Vue</title>
12+
<link rel="icon" type="image/x-icon" href="https://cdn.nlark.com/yuque/0/2019/png/87084/1548485177381-assets/web-upload/d18a622f-08d8-4955-a5c2-38138f80177b.png">
13+
<style id="nprogress-style">
14+
#nprogress {
15+
display: none;
16+
}
17+
</style>
18+
<script>
19+
var _hmt = _hmt || [];
20+
var isGithub = location.host.indexOf('github') !== -1;
21+
var src = isGithub ? 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d';
22+
(function() {
23+
var hm = document.createElement('script');
24+
hm.src = src;
25+
var s = document.getElementsByTagName('script')[0];
26+
s.parentNode.insertBefore(hm, s);
27+
})()
28+
</script>
3129
</head>
32-
3330
<body>
34-
<div id="app">
35-
<router-view></router-view>
36-
</div>
37-
<div id="ad">
38-
<!-- <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio" id="_carbonads_js"></script> -->
39-
</div>
40-
<div id="codefund"></div>
41-
<script>
42-
// var SeedAndDewConfig = {};
43-
// (function() {
44-
// SeedAndDewConfig['adClass'] = "snd-ad";
45-
// /* * * DON'T EDIT BELOW THIS LINE * * */
46-
// SeedAndDewConfig['projectId'] = '31734ee0-6439-448d-8848-ed99e514f266';
47-
// SeedAndDewConfig['loadStartTime'] = performance.now();
48-
// SeedAndDewConfig['apiVersion'] = '2018-05-28'
49-
// SeedAndDewConfig['sessionId'] = Math.random().toString(36).substring(2, 15);
50-
// var snd = document.createElement('script');
51-
// snd.type = 'text/javascript';
52-
// snd.async = true;
53-
// snd.src = 'https://www.seedanddew.com/static/embed.min.js';
54-
// (document.getElementsByTagName('head')[0] ||
55-
// document.getElementsByTagName('body')[0]).appendChild(snd);
56-
// })();
57-
</script>
31+
<div id="app">
32+
<router-view></router-view>
33+
</div>
5834
</body>
59-
6035
</html>

0 commit comments

Comments
 (0)