Skip to content

Commit 51e6472

Browse files
committed
更新贡献者显示方式
1 parent ac25183 commit 51e6472

File tree

4 files changed

+147
-7
lines changed

4 files changed

+147
-7
lines changed

src/about/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ order: 0
88

99
- [vue 2.0 - Guide 翻译校对 (进度 / 认领)](https://github.com/vuefe/vuejs.org/issues/77)
1010
- [vuex 2.0 - 文档翻译 (进度 / 认领)](https://github.com/vuefe/vuejs.org/issues/124)
11+
- [webpack2 中文文档翻译(进度 / 认领)](https://github.com/vuefe/webpack.js.org/issues/2)
12+
13+
1114

1215
## Guide 翻译贡献
1316

1417
### Essentials 基础
1518

1619
序号 | 对应文档文件名 | 中文标题 | 翻译贡献者 | 校对主要贡献者
1720
----- | ------------- | --- | --- | --- | --- | ---
18-
1 | installation.md | 安装 | [dingyiming](https://github.com/dingyiming) | [ATLgo](https://github.com/ATLgo) [70data](https://github.com/70data)
21+
1 | installation.md | 安装 | [dingyiming](https://github.com/dingyiming) | [ATLgo](https://github.com/ATLgo) [70data](https://github.com/70data)
1922
2 | index.md | 介绍 | [hijiangtao](https://github.com/hijiangtao) | [70data](https://github.com/70data) [ATLgo](https://github.com/ATLgo)
2023
3 | instance.md | 实例 | [dingyiming](https://github.com/dingyiming) | [70data](https://github.com/70data) [ATLgo](https://github.com/ATLgo)
2124
4 | syntax.md | 模板语法 | [daix6](https://github.com/daix6) | [70data](https://github.com/70data)
@@ -31,9 +34,9 @@ order: 0
3134

3235
序号 | 对应文档文件名 | 中文标题 | 翻译贡献者 | 校对主要贡献者
3336
----- | ------------- | --- | --- | --- | ---
34-
12 | transitions.md | 过渡: 进入, 离开, 和 列表 | [awe](https://github.com/awe) | [bhnddowinf](https://github.com/bhnddowinf) [StoneQI](https://github.com/StoneQI)
35-
13 | transitioning-state.md | 过渡状态 | [awe](https://github.com/awe) | [bhnddowinf](https://github.com/bhnddowinf)
36-
14 | render-function.md | Render 函数 | [awe](https://github.com/awe) | [bhnddowinf](https://github.com/bhnddowinf)
37+
12 | transitions.md | 过渡: 进入, 离开, 和 列表 | [awe](https://github.com/hilongjw) | [bhnddowinf](https://github.com/bhnddowinf) [StoneQI](https://github.com/StoneQI)
38+
13 | transitioning-state.md | 过渡状态 | [awe](https://github.com/hilongjw) | [bhnddowinf](https://github.com/bhnddowinf)
39+
14 | render-function.md | Render 函数 | [awe](https://github.com/hilongjw) | [bhnddowinf](https://github.com/bhnddowinf)
3740
15 | reactivity.md | 深入响应式原理 | [veaba](https://github.com/veaba) | [yangzj1992](https://github.com/yangzj1992)
3841
16 | custom-directive.md | 自定义指令 | [harrytospring](https://github.com/harrytospring) | [yangzj1992](https://github.com/yangzj1992)
3942
17 | mixins.md | 混合 | [harrytospring](https://github.com/harrytospring) | [bhnddowinf](https://github.com/bhnddowinf)

themes/vue/layout/page.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
</div>
99
<% } %>
1010
<div class="content <%- page.type ? page.type + ' with-sidebar' : '' %> <%- page.type === 'guide' ? page.path.replace(/.+\//, '').replace('.html', '') + '-guide' : '' %>">
11-
<% if (page.type) { %>
12-
<%- partial('partials/ad') %>
13-
<% } %>
1411
<% if (page.title.trim()) { %>
1512
<h1><%- page.title %><%- page.type === 'examples' ? ' Example' : '' %></h1>
1613
<% } %>
14+
<% if (page.type === 'about') { %>
15+
<%- partial('partials/contributors') %>
16+
<% } %>
1717
<%- page.content %>
1818
<% if (page.type === 'guide') { %>
1919
<div class="guide-links">
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<div id="contributors">
2+
<p>共 <span style="color:#e66;font-size:28px;" v-text="list.length "></span> 人参与贡献, <a href="https://github.com/vuefe/vuejs.org/issues/192">如有遗漏,请告知</a></p>
3+
<ul class="contributors">
4+
<a v-for="item in list"
5+
class="contributor"
6+
:href="'https://github.com/' + item.github">
7+
<img class="contributor__img" :src="'https://github.com/' + item.github + '.png?size=64'" />
8+
<p v-text="item.github" style="margin: 0;"></p>
9+
</a>
10+
</ul>
11+
</div>
12+
13+
<style>
14+
.contributor {
15+
display: inline-block;
16+
margin: 10px 15px;
17+
text-align: center;
18+
}
19+
.contributor__img {
20+
width: 64px;
21+
height: 64px;
22+
border-radius: 64px;
23+
}
24+
</style>
25+
26+
27+
<script>
28+
new Vue({
29+
el: "#contributors",
30+
data: function() {
31+
return {
32+
list: [
33+
{
34+
github: 'dingyiming'
35+
},{
36+
github: '70data'
37+
},{
38+
github: 'bhnddowinf'
39+
},{
40+
github: 'dear-lizhihua'
41+
},{
42+
github: 'hilongjw'
43+
},{
44+
github: 'hijiangtao'
45+
},{
46+
github: 'ATLgo'
47+
},{
48+
github: 'daix6'
49+
},{
50+
github: 'hgcoder'
51+
},{
52+
github: 'yangzj1992'
53+
},{
54+
github: 'veaba'
55+
},{
56+
github: 'tingtien'
57+
},{
58+
github: 'ezreally'
59+
},{
60+
github: 'cuiyongjian'
61+
},{
62+
github: 'StoneQI'
63+
},{
64+
github: 'harrytospring'
65+
},{
66+
github: 'lindazhang102'
67+
},{
68+
github: '595074187'
69+
},{
70+
github: 'zhouzihanntu'
71+
},{
72+
github: 'mlyknown'
73+
},{
74+
github: 'yongbolv'
75+
},{
76+
github: 'yizhixiaolongxia'
77+
},{
78+
github: 'forzajuve10'
79+
},{
80+
github: 'coolzjy'
81+
},{
82+
github: 'tuxiantian'
83+
},{
84+
github: 'showonne'
85+
},{
86+
github: 'Luoxinfang'
87+
},{
88+
github: 'xie-qianyue'
89+
},{
90+
github: 'rocklau'
91+
},{
92+
github: 'shoglory'
93+
},{
94+
github: 'viko16'
95+
},{
96+
github: 'panzj'
97+
},{
98+
github: ' Creabine'
99+
},{
100+
github: 'shupande'
101+
},{
102+
github: 'ShangXinbo'
103+
},{
104+
github: 'swust-xiaoj'
105+
},{
106+
github: 'lichunqiang'
107+
},{
108+
github: 'athena0304'
109+
},{
110+
github: 'zhouxinyong'
111+
},{
112+
github: 'LightCi'
113+
},{
114+
github: 'MrZhang123'
115+
},{
116+
github: 'XyinM'
117+
},{
118+
github: 'homfen'
119+
},{
120+
github: 'sleelily'
121+
},{
122+
github: 'varHarrie'
123+
},{
124+
github: 'fytriht'
125+
},{
126+
github: 'yuzhiquan'
127+
},{
128+
github: 'LeoSpark'
129+
},{
130+
github: 'liyahui'
131+
}
132+
]
133+
};
134+
}
135+
})
136+
</script>

themes/vue/layout/partials/main_menu.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<li><a href="/vue-router/" class="nav-link<%- page.path.match(/vue-router/) ? ' current' : '' %>">vue-router</a></li>
55
<li><a href="/vuex/" class="nav-link<%- page.path.match(/vuex/) ? ' current' : '' %>">vuex</a></li>
66
<li><a href="/examples/" class="nav-link<%- page.path.match(/examples/) ? ' current' : '' %>">示例</a></li>
7+
<li><a href="http://webpack.vuefe.cn" target="_blank">webpack</a></li>
78
<li><a href="/more/" class="nav-link<%- page.path.match(/more/) ? ' current' : '' %>">更多</a></li>
89
<%- partial('partials/community_dropdown') %>

0 commit comments

Comments
 (0)