From 986730477b2994863ff98970cd2c0eca63f0e149 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Tue, 5 Jan 2021 20:29:09 +0800 Subject: [PATCH] docs: add users (#30) * docs: add users * add * add --- README.en-US.md | 53 +++++++++++++++++-------------------------- README.md | 51 ++++++++++++++++------------------------- USERS.js | 42 ++++++++++++++++++++++++++++++++++ docs/index.en-US.md | 2 +- docs/index.md | 2 +- script/update-user.js | 53 ++++++++----------------------------------- 6 files changed, 94 insertions(+), 109 deletions(-) create mode 100644 USERS.js diff --git a/README.en-US.md b/README.en-US.md index f4fe366..2e231f8 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -94,7 +94,7 @@ jobs: - The `name` can be modified according to the actual situation - [Reference to on](#github-docs) - `${{ github.event.issue.number }}` is the current issue. [More references](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events) -- `assignees` support multiple and separated by comma +- `assignees` support multiple and separated by comma ⏫ [Back to list](#List) @@ -1000,61 +1000,50 @@ At the same time, if you have any questions during use, you can also ask and inq - - + - + - + - + + + - - + - - - - + +
+
ant-design -
-
+
ant-design-vue -
-
+
dumi -
-
+
material-ui -
-
+
+ + +
+ react-music-player +

umi -
-
+
vue-request -
-
- - - - - - - -
diff --git a/README.md b/README.md index 80a852d..37dec8d 100644 --- a/README.md +++ b/README.md @@ -995,61 +995,50 @@ x2 + y2 - - + - + - + - + + + - - + - - - - + +
+
ant-design -
-
+
ant-design-vue -
-
+
dumi -
-
+
material-ui -
-
+
+ + +
+ react-music-player +

umi -
-
+
vue-request -
-
- - - - - - - -
diff --git a/USERS.js b/USERS.js new file mode 100644 index 0000000..c8c5794 --- /dev/null +++ b/USERS.js @@ -0,0 +1,42 @@ +// ************************************************************************** + +// Add to end + +const users = [ + { + url: 'https://github.com/ant-design/ant-design', + logo: 'https://avatars1.githubusercontent.com/u/12101536?s=200&v=4' + }, + { + url: 'https://github.com/vueComponent/ant-design-vue', + logo: 'https://avatars1.githubusercontent.com/u/32120805?s=200&v=4' + }, + { + url: 'https://github.com/umijs/dumi', + logo: 'https://avatars1.githubusercontent.com/u/33895495?s=200&v=4' + }, + { + url: 'https://github.com/umijs/umi', + logo: 'https://avatars1.githubusercontent.com/u/33895495?s=200&v=4' + }, + { + url: 'https://github.com/AttoJS/vue-request', + logo: 'https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png' + }, + { + url: 'https://github.com/mui-org/material-ui', + logo: 'https://avatars2.githubusercontent.com/u/33663932?s=200&v=4' + }, + { + url: 'https://github.com/lijinke666/react-music-player', + logo: 'https://github.com/lijinke666/react-music-player/blob/master/assetsImg/logo.png?raw=true' + }, +]; + +// ************************************************************************** + +module.exports = { + users +}; + +// ************************************************************************** diff --git a/docs/index.en-US.md b/docs/index.en-US.md index 3f75e6b..1525868 100644 --- a/docs/index.en-US.md +++ b/docs/index.en-US.md @@ -51,7 +51,7 @@ jobs: ## 💖 Who is using? - + ## ⚡ Feedback diff --git a/docs/index.md b/docs/index.md index d176955..bc7b3d9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -51,7 +51,7 @@ jobs: ## 💖 谁在使用? - + ## ⚡ 反馈 diff --git a/script/update-user.js b/script/update-user.js index 56a1f87..05ef38c 100644 --- a/script/update-user.js +++ b/script/update-user.js @@ -3,60 +3,24 @@ const { stripIndent } = require('common-tags'); // ************************************************************************** -let users = [ - { - url: 'https://github.com/ant-design/ant-design', - logo: 'https://avatars1.githubusercontent.com/u/12101536?s=200&v=4' - }, - { - url: 'https://github.com/vueComponent/ant-design-vue', - logo: 'https://avatars1.githubusercontent.com/u/32120805?s=200&v=4' - }, - { - url: 'https://github.com/umijs/dumi', - logo: 'https://avatars1.githubusercontent.com/u/33895495?s=200&v=4' - }, - { - url: 'https://github.com/umijs/umi', - logo: 'https://avatars1.githubusercontent.com/u/33895495?s=200&v=4' - }, - { - url: 'https://github.com/AttoJS/vue-request', - logo: 'https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png' - }, - { - url: 'https://github.com/mui-org/material-ui', - logo: 'https://avatars2.githubusercontent.com/u/33663932?s=200&v=4' - }, -]; +let { users } = require('../USERS.js'); users.sort((a, b) => getName(a).localeCompare(getName(b))); // ************************************************************************** let table = ''; -let row = users.length / 5; -let lastNo = users.length % 5; +let row = users.length / 4; +let lastNo = users.length % 4; if (lastNo != 0) row += 1; for (let j = 1; j <= row; j++) { let data = ''; data = stripIndent` - - ${getImg(users[(j-1)*5])} - - - ${getImg(users[(j-1)*5+1])} - - - ${getImg(users[(j-1)*5+2])} - - - ${getImg(users[(j-1)*5+3])} - - - ${getImg(users[(j-1)*5+4])} - + ${getImg(users[(j-1)*4])} + ${getImg(users[(j-1)*4+1])} + ${getImg(users[(j-1)*4+2])} + ${getImg(users[(j-1)*4+3])} `; table += data }; @@ -97,7 +61,8 @@ console.log(`🎉 Done en`); function getImg (o) { if (o) { - return ` + return ` +
${getName(o)}