docs: add users (#30)

* docs: add users

* add

* add
This commit is contained in:
xrkffgg
2021-01-05 20:29:09 +08:00
committed by GitHub
parent 9984ee0402
commit 986730477b
6 changed files with 94 additions and 109 deletions

View File

@@ -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
<table>
<tr>
<td align="center" width="160">
<td align="center" width="180">
<a href="https://github.com/ant-design/ant-design">
<img src="https://avatars1.githubusercontent.com/u/12101536?s=200&v=4" width="46" />
<br />
ant-design
</a>
</td>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/vueComponent/ant-design-vue">
<img src="https://avatars1.githubusercontent.com/u/32120805?s=200&v=4" width="46" />
<br />
ant-design-vue
</a>
</td>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/umijs/dumi">
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46" />
<br />
dumi
</a>
</td>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/mui-org/material-ui">
<img src="https://avatars2.githubusercontent.com/u/33663932?s=200&v=4" width="46" />
<br />
material-ui
</a>
</td>
<td align="center" width="160">
</a></td>
</tr><tr>
<td align="center" width="180">
<a href="https://github.com/lijinke666/react-music-player">
<img src="https://github.com/lijinke666/react-music-player/blob/master/assetsImg/logo.png?raw=true" width="46" />
<br />
react-music-player
</a></td>
<td align="center" width="180">
<a href="https://github.com/umijs/umi">
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46" />
<br />
umi
</a>
</td>
</tr><tr>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/AttoJS/vue-request">
<img src="https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png" width="46" />
<br />
vue-request
</a>
</td>
<td align="center" width="160">
</td>
<td align="center" width="160">
</td>
<td align="center" width="160">
</td>
<td align="center" width="160">
</td>
</a></td>
<td align="center" width="180"></td>
</tr>
</table>

View File

@@ -995,61 +995,50 @@ x2 + y2
<table>
<tr>
<td align="center" width="160">
<td align="center" width="180">
<a href="https://github.com/ant-design/ant-design">
<img src="https://avatars1.githubusercontent.com/u/12101536?s=200&v=4" width="46" />
<br />
ant-design
</a>
</td>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/vueComponent/ant-design-vue">
<img src="https://avatars1.githubusercontent.com/u/32120805?s=200&v=4" width="46" />
<br />
ant-design-vue
</a>
</td>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/umijs/dumi">
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46" />
<br />
dumi
</a>
</td>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/mui-org/material-ui">
<img src="https://avatars2.githubusercontent.com/u/33663932?s=200&v=4" width="46" />
<br />
material-ui
</a>
</td>
<td align="center" width="160">
</a></td>
</tr><tr>
<td align="center" width="180">
<a href="https://github.com/lijinke666/react-music-player">
<img src="https://github.com/lijinke666/react-music-player/blob/master/assetsImg/logo.png?raw=true" width="46" />
<br />
react-music-player
</a></td>
<td align="center" width="180">
<a href="https://github.com/umijs/umi">
<img src="https://avatars1.githubusercontent.com/u/33895495?s=200&v=4" width="46" />
<br />
umi
</a>
</td>
</tr><tr>
<td align="center" width="160">
</a></td>
<td align="center" width="180">
<a href="https://github.com/AttoJS/vue-request">
<img src="https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png" width="46" />
<br />
vue-request
</a>
</td>
<td align="center" width="160">
</td>
<td align="center" width="160">
</td>
<td align="center" width="160">
</td>
<td align="center" width="160">
</td>
</a></td>
<td align="center" width="180"></td>
</tr>
</table>

42
USERS.js Normal file
View File

@@ -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
};
// **************************************************************************

View File

@@ -51,7 +51,7 @@ jobs:
## 💖 Who is using?
<embed src="../README.md#L996-L1054"></embed>
<embed src="../README.md#L996-L1043"></embed>
## ⚡ Feedback

View File

@@ -51,7 +51,7 @@ jobs:
## 💖 谁在使用?
<embed src="../README.md#L996-L1054"></embed>
<embed src="../README.md#L996-L1043"></embed>
## ⚡ 反馈

View File

@@ -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`
<tr>
<td align="center" width="160">
${getImg(users[(j-1)*5])}
</td>
<td align="center" width="160">
${getImg(users[(j-1)*5+1])}
</td>
<td align="center" width="160">
${getImg(users[(j-1)*5+2])}
</td>
<td align="center" width="160">
${getImg(users[(j-1)*5+3])}
</td>
<td align="center" width="160">
${getImg(users[(j-1)*5+4])}
</td>
<td align="center" width="180">${getImg(users[(j-1)*4])}</td>
<td align="center" width="180">${getImg(users[(j-1)*4+1])}</td>
<td align="center" width="180">${getImg(users[(j-1)*4+2])}</td>
<td align="center" width="180">${getImg(users[(j-1)*4+3])}</td>
</tr>`;
table += data
};
@@ -97,7 +61,8 @@ console.log(`🎉 Done en`);
function getImg (o) {
if (o) {
return `<a href="${o.url}">
return `
<a href="${o.url}">
<img src="${o.logo}" width="46" />
<br />
${getName(o)}