This is an automated email from the ASF dual-hosted git repository.
midnight2104 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 47e4fb0 Update the menu Awesome to Community (#180) (#190)
47e4fb0 is described below
commit 47e4fb03529ce9a139fe7d413596bf95e8ba9add
Author: fengzhenbing <[email protected]>
AuthorDate: Mon Aug 9 19:25:02 2021 +0800
Update the menu Awesome to Community (#180) (#190)
---
assets/js/app.js | 4 +++
assets/js/modules/contributer.js | 28 +++++++++++++++
config.toml | 20 +++++------
content/en/community/_index.md | 4 +++
content/en/community/contributor-list/index.md | 12 +++++++
content/en/community/user-list/index.md | 48 ++++++++++++++++++++++++++
content/zh/community/_index.md | 5 ++-
content/zh/community/contributor-list/index.md | 12 +++++++
content/zh/community/user-list/index.md | 48 ++++++++++++++++++++++++++
layouts/community/single.html | 3 ++
layouts/partials/card/contributor_card.html | 7 ++++
11 files changed, 180 insertions(+), 11 deletions(-)
diff --git a/assets/js/app.js b/assets/js/app.js
index affec36..0589112 100644
--- a/assets/js/app.js
+++ b/assets/js/app.js
@@ -5,6 +5,7 @@ import asideFunc from './modules/aside'
import searchFunc from './modules/search'
import paginationFunc from './modules/pagination'
import animationFunc from './modules/animation'
+import contributerFunc from './modules/contributer'
import zoom from 'zoom-image'
import 'zoom-image/css/zoom-image.css'
@@ -34,6 +35,9 @@ const main = () => {
// projects
projectFunc()
+ // contributer list
+ contributerFunc();
+
// image zoom
$$('.typo img').forEach(imgElem => {
zoom(imgElem)
diff --git a/assets/js/modules/contributer.js b/assets/js/modules/contributer.js
new file mode 100644
index 0000000..22ee0df
--- /dev/null
+++ b/assets/js/modules/contributer.js
@@ -0,0 +1,28 @@
+import { $$ } from './utils';
+
+export default function () {
+ if (!$$('.contributor-list')) {
+ return;
+ }
+
fetch("https://api.github.com/repos/apache/incubator-shenyu/contributors?page=1&per_page=10000").then(function
(response) {
+ return response.json();
+ }).then(function (res) {
+ let html = "";
+ if (res && Array.isArray(res)) {
+ res.forEach((c, i) => {
+ if (i % 5 === 0) {
+ if (i > 0) {
+ html += "</tr>"
+ }
+ html += "<tr>"
+ }
+ html += `<td><a href="${c.html_url}" target="_blank"><img
src="${c.avatar_url}" height="20" /> @${c.login}</a></td>`;
+ if (i === res.length - 1) {
+ html += "</tr>"
+ }
+ })
+ }
+ $$('.contributor-list')[0].innerHTML = html;
+ });
+
+}
\ No newline at end of file
diff --git a/config.toml b/config.toml
index c9a847b..b9935b4 100644
--- a/config.toml
+++ b/config.toml
@@ -80,11 +80,11 @@ unsafe = true
# name = "活动"
# url = "/zh/activities/"
# weight = 4
- [[languages.zh.menu.main]]
- identifier = "awesome"
- name = "Awesome"
- url = "/zh/awesome/"
- weight = 5
+ # [[languages.zh.menu.main]]
+ # identifier = "awesome"
+ # name = "Awesome"
+ # url = "/zh/awesome/"
+ # weight = 5
#[[languages.zh.menu.main]]
# identifier = "Links"
# name = "Links"
@@ -126,11 +126,11 @@ unsafe = true
# name = "Activity"
# url = "/activities/"
# weight = 4
- [[menu.main]]
- identifier = "awesome"
- name = "Awesome"
- url = "/awesome/"
- weight = 5
+ # [[menu.main]]
+ # identifier = "awesome"
+ # name = "Awesome"
+ # url = "/awesome/"
+ # weight = 5
[sitemap]
changefreq = "monthly"
diff --git a/content/en/community/_index.md b/content/en/community/_index.md
index 452ac86..9464278 100644
--- a/content/en/community/_index.md
+++ b/content/en/community/_index.md
@@ -21,6 +21,10 @@ sidebar:
link: '2fa'
- title: 'Sign ICLA'
link: 'icla'
+ - title: 'Contributor List'
+ link: 'contributor-list'
+ - title: 'User Registration'
+ link: 'user-list'
# draft: true
---
diff --git a/content/en/community/contributor-list/index.md
b/content/en/community/contributor-list/index.md
new file mode 100644
index 0000000..23bb705
--- /dev/null
+++ b/content/en/community/contributor-list/index.md
@@ -0,0 +1,12 @@
+---
+title: Contributors
+description: Contributors
+author: "xiaoyu"
+loadContributorList: true
+categories: "Apache ShenYu"
+tags: ["ContributorList"]
+---
+
+Hundreds of people have contributed articles and code to Apache ShenYu so far,
thank you very much!
+
+If you want to contribute, you can go to the [Apache
ShenYu](https://github.com/apache/incubator-shenyu/) and fork it.
diff --git a/content/en/community/user-list/index.md
b/content/en/community/user-list/index.md
new file mode 100644
index 0000000..99a70cc
--- /dev/null
+++ b/content/en/community/user-list/index.md
@@ -0,0 +1,48 @@
+---
+title: User Registration
+description: User List
+author: "xiaoyu"
+categories: "Apache ShenYu"
+tags: ["UserList"]
+---
+
+## Known Users{#knownusers}
+
+Here is a list of companies or organizations that we know have used all or
some of Apache ShenYu's components in production.This list is in no particular
order:
+
+<img alt="yy" src="/img/users/yy_logo.png" width="150" height="60" />
+<img alt="mihoyo" src="/img/users/mihayo_logo.png" width="150" height="60" />
+<img alt="shansong" src="/img/users/shansong_logo.png" width="150" height="60"
/>
+<img alt="sibu group"
src="https://yu199195.github.io/images/soul/users/sibu.jpg" height="60" />
+<img alt="cheyipai" src="/img/users/cheyipai_logo.jpg" width="120" height="60"
/>
+<img alt="caibeike" src="/img/users/caibeike_logo.png" height="60" />
+<img alt="fangfutong"
src="https://yu199195.github.io/images/soul/users/fangfutong.png" height="60" />
+<img alt="chinaTelecom" src="/img/users/china_telecom_logo.png" height="60" />
+<img alt="kaipuyun"
src="https://yu199195.github.io/images/soul/users/kaipuyun.png" height="60" />
+<img alt="songda"
src="https://yu199195.github.io/images/soul/users/songda.png" height="60" />
+<img alt="aoyou" src="https://yu199195.github.io/images/soul/users/aoyou.jpg"
height="60" />
+<img alt="caomao"
src="https://yu199195.github.io/images/soul/users/caomao.jpg" height="60" />
+<img alt="zuyun" src="https://yu199195.github.io/images/soul/users/zuyun.jpg"
height="60" />
+<img alt="hezhi" src="https://yu199195.github.io/images/soul/users/hezhi.png"
height="60" />
+<img alt="qidianyun"
src="https://yu199195.github.io/images/soul/users/qidianyun.jpg" height="60" />
+<img alt="wanwei" src="/img/users/wanwei_logo.png" height="60" />
+<img alt="sijibao" src="/img/users/sijibao_logo.png" height="60" />
+<img alt="haokangzaijia"
src="https://yu199195.github.io/images/soul/users/haokangzaijia.jpg"
height="60" />
+<img alt="caissa"
src="https://yu199195.github.io/images/soul/users/caissa.jpg" height="60" />
+<img alt="deepBule" src="/img/users/deepblue_logo.png" height="60" />
+<img alt="huaxiaershouche" src="/img/users/huaxiaershouche_logo.png"
height="60" />
+<img alt="mingLAMP"
src="https://yu199195.github.io/images/soul/users/minglamp.jpeg" height="60" />
+<img alt="webuy" src="https://yu199195.github.io/images/soul/users/webuy.jpg"
height="60" />
+<img alt="casstime" src="/img/users/cass.png" height="60"/>
+<img alt="jiangsuyonggang"
src="https://yu199195.github.io/images/soul/users/jiangsuyonggang.jpg"
height="60" />
+<img alt="kk group"
src="https://yu199195.github.io/images/soul/users/keking.png" height="60" />
+<img alt="songguo" src="/img/users/songguo.png" height="60" />
+<img alt="lianlian" src="/img/users/lianlian.png" height="60" />
+<img alt="dasouche" src="/img/users/dasouche.png" height="60" />
+<img alt="weimai" src="/img/users/weimai.png" height="60" />
+
+## Registration{#registration}
+
+Please register and let us know so that we can serve you better.
+
+* [Apache ShenYu
registration](https://github.com/apache/incubator-shenyu/issues/68)
\ No newline at end of file
diff --git a/content/zh/community/_index.md b/content/zh/community/_index.md
index 645395e..005d3ea 100644
--- a/content/zh/community/_index.md
+++ b/content/zh/community/_index.md
@@ -21,7 +21,10 @@ sidebar:
link: '2fa'
- title: '签署ICLA'
link: 'icla'
-
+ - title: 'Contributor列表'
+ link: 'contributor-list'
+ - title: '用户登记'
+ link: 'user-list'
# draft: true
---
\ No newline at end of file
diff --git a/content/zh/community/contributor-list/index.md
b/content/zh/community/contributor-list/index.md
new file mode 100644
index 0000000..3b8b0ff
--- /dev/null
+++ b/content/zh/community/contributor-list/index.md
@@ -0,0 +1,12 @@
+---
+title: 贡献者
+description: 贡献者列表
+author: "xiaoyu"
+loadContributorList: true
+categories: "Apache ShenYu"
+tags: ["ContributorList"]
+---
+
+目前已经有上百位小伙伴为Apache ShenYu 贡献了文章和代码,非常感谢他们!
+
+想要参与贡献,可以直接去[Apache ShenYu](https://github.com/apache/incubator-shenyu/),并fork。
diff --git a/content/zh/community/user-list/index.md
b/content/zh/community/user-list/index.md
new file mode 100644
index 0000000..65954cd
--- /dev/null
+++ b/content/zh/community/user-list/index.md
@@ -0,0 +1,48 @@
+---
+title: 用户登记
+description: 用户列表
+author: "xiaoyu"
+categories: "Apache ShenYu"
+tags: ["UserList"]
+---
+
+## 已知用户{#knownusers}
+
+此处会列出我们已知的在生产环境使用了Apache ShenYu 全部或者部分组件的公司或组织。以下排名不分先后:
+
+<img alt="yy" src="/img/users/yy_logo.png" width="150" height="60" />
+<img alt="mihoyo" src="/img/users/mihayo_logo.png" width="150" height="60" />
+<img alt="shansong" src="/img/users/shansong_logo.png" width="150" height="60"
/>
+<img alt="sibu group"
src="https://yu199195.github.io/images/soul/users/sibu.jpg" height="60" />
+<img alt="cheyipai" src="/img/users/cheyipai_logo.jpg" width="120" height="60"
/>
+<img alt="caibeike" src="/img/users/caibeike_logo.png" height="60" />
+<img alt="fangfutong"
src="https://yu199195.github.io/images/soul/users/fangfutong.png" height="60" />
+<img alt="chinaTelecom" src="/img/users/china_telecom_logo.png" height="60" />
+<img alt="kaipuyun"
src="https://yu199195.github.io/images/soul/users/kaipuyun.png" height="60" />
+<img alt="songda"
src="https://yu199195.github.io/images/soul/users/songda.png" height="60" />
+<img alt="aoyou" src="https://yu199195.github.io/images/soul/users/aoyou.jpg"
height="60" />
+<img alt="caomao"
src="https://yu199195.github.io/images/soul/users/caomao.jpg" height="60" />
+<img alt="zuyun" src="https://yu199195.github.io/images/soul/users/zuyun.jpg"
height="60" />
+<img alt="hezhi" src="https://yu199195.github.io/images/soul/users/hezhi.png"
height="60" />
+<img alt="qidianyun"
src="https://yu199195.github.io/images/soul/users/qidianyun.jpg" height="60" />
+<img alt="wanwei" src="/img/users/wanwei_logo.png" height="60" />
+<img alt="sijibao" src="/img/users/sijibao_logo.png" height="60" />
+<img alt="haokangzaijia"
src="https://yu199195.github.io/images/soul/users/haokangzaijia.jpg"
height="60" />
+<img alt="caissa"
src="https://yu199195.github.io/images/soul/users/caissa.jpg" height="60" />
+<img alt="deepBule" src="/img/users/deepblue_logo.png" height="60" />
+<img alt="huaxiaershouche" src="/img/users/huaxiaershouche_logo.png"
height="60" />
+<img alt="mingLAMP"
src="https://yu199195.github.io/images/soul/users/minglamp.jpeg" height="60" />
+<img alt="webuy" src="https://yu199195.github.io/images/soul/users/webuy.jpg"
height="60" />
+<img alt="casstime" src="/img/users/cass.png" height="60"/>
+<img alt="jiangsuyonggang"
src="https://yu199195.github.io/images/soul/users/jiangsuyonggang.jpg"
height="60" />
+<img alt="kk group"
src="https://yu199195.github.io/images/soul/users/keking.png" height="60" />
+<img alt="songguo" src="/img/users/songguo.png" height="60" />
+<img alt="lianlian" src="/img/users/lianlian.png" height="60" />
+<img alt="dasouche" src="/img/users/dasouche.png" height="60" />
+<img alt="weimai" src="/img/users/weimai.png" height="60" />
+
+## 登记{#registration}
+
+请登记告诉我们,方便我们更好地为您服务。
+
+* [Apache ShenYu](https://github.com/apache/incubator-shenyu/issues/68)
diff --git a/layouts/community/single.html b/layouts/community/single.html
index 75a776a..63789ee 100644
--- a/layouts/community/single.html
+++ b/layouts/community/single.html
@@ -12,6 +12,9 @@
<main class="ss-layout-main -card">
{{ partial "post/meta/community_meta" . }}
{{ partial "post/article" . }}
+ {{ if eq .Params.loadContributorList true }}
+ {{ partial "card/contributor_card" . }}
+ {{ end }}
</main>
</div>
diff --git a/layouts/partials/card/contributor_card.html
b/layouts/partials/card/contributor_card.html
new file mode 100644
index 0000000..eaf5324
--- /dev/null
+++ b/layouts/partials/card/contributor_card.html
@@ -0,0 +1,7 @@
+<div class="typo">
+ <table>
+ <tbody class="contributor-list">
+
+ </tbody>
+ </table>
+</div>
\ No newline at end of file