Skip to content

Commit

Permalink
✨ feat: cnm!我们有图床了
Browse files Browse the repository at this point in the history
  • Loading branch information
HRxiaohu committed Aug 6, 2023
1 parent 67fe758 commit 8e6abc0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 55 deletions.
46 changes: 20 additions & 26 deletions docs/.vitepress/data/members.ts
Original file line number Diff line number Diff line change
@@ -1,94 +1,88 @@
const members = [
{
avatar: "https://s1.ax1x.com/2023/08/03/pPiZ9DP.jpg",
avatar: "https://cdn.crashmc.com/https://github.com/bwtx2023.png",
name: "bwtx2023",
title: "创建者",
links: [{ icon: "github", link: "https://github.com/bwtx2023" }],
},
{
avatar: "https://s1.ax1x.com/2023/08/02/pPP4Tc6.jpg",
avatar: "https://cdn.crashmc.com/https://github.com/HRxiaohu.png",
name: "HRxiaohu",
title: "开发者",
links: [{ icon: "github", link: "https://github.com/HRxiaohu" }],
},
{
avatar: "https://s1.ax1x.com/2023/08/03/pPiZCHf.jpg",
avatar: "https://cdn.crashmc.com/https://github.com/Big-Cake-jpg.png",
name: "Big_Cake",
title: "站点维护",
title: "开发者",
links: [{ icon: "github", link: "https://github.com/Big-Cake-jpg" }],
},
{
avatar:
"https://jsd.onmicrosoft.cn/avatar/2defd5540f480625cf9d09e5d4c3b7c4.png",
avatar: "https://cdn.crashmc.com/https://github.com/bingling-sama.png",
name: "bingling-sama",
title: "开发者",
links: [{ icon: "github", link: "https://github.com/bingling-sama" }],
},
{
avatar: "https://cdn.crashmc.com/https://github.com/XieXiLin2.png",
name: "XieXiLin",
title: "域名资金支持",
links: [{ icon: "github", link: "https://github.com/XieXiLin2" }],
},
{
avatar:
"https://jsd.onmicrosoft.cn/avatar/e5749fc6095cfe035dd18d405400c289.png",
avatar: "https://cdn.crashmc.com/https://github.com/2623684696.png",
name: "233355607",
title: "域名管理",
links: [{ icon: "github", link: "https://github.com/2623684696" }],
},
{
avatar:
"https://jsd.onmicrosoft.cn/avatar/4db948c2483ceca88a6ade051f37dc1e.png",
avatar: "https://cdn.crashmc.com/https://github.com/bingxin666.png",
name: "bingxin666",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/bingxin666" }],
},
{
avatar: "https://s1.ax1x.com/2023/08/03/pPiZiE8.jpg",
avatar: "https://cdn.crashmc.com/https://github.com/Rovniced.png",
name: "Enlysure",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/Rovniced" }],
},
{
avatar: "https://github.com/hejiehao.png",
avatar: "https://cdn.crashmc.com/https://github.com/hejiehao.png",
name: "何杰豪",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/hejiehao" }],
},
{
avatar:
"https://jsd.onmicrosoft.cn/avatar/e4e09756d8e17245eca044adccdc96a8.png",
avatar: "https://cdn.crashmc.com/https://github.com/Seayay.png",
name: "思源千年",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/Seayay" }],
},
{
avatar: "https://s1.ax1x.com/2023/08/03/pPiZFUS.jpg",
avatar: "https://cdn.crashmc.com/https://github.com/zkitefly.png",
name: "zkitefly",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/zkitefly" }],
},
{
avatar: "https://s1.ax1x.com/2023/08/03/pPiZk4g.jpg",
avatar: "https://cdn.crashmc.com/https://github.com/ZhuRuoLing.png",
name: "竹若泠",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/ZhuRuoLing" }],
},
{
avatar:
"https://jsd.onmicrosoft.cn/avatar/581d7a85fb19ae52a34a93447f707b17.png",
avatar: "https://cdn.crashmc.com/https://github.com/ztsinsun.png",
name: "Z_Tsin",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/ztsinsun" }],
},
{
avatar: "https://s1.ax1x.com/2023/08/03/pPiZECQ.png",
avatar: "https://cdn.crashmc.com/https://github.com/Hex-Dragon.png",
name: "Hex Dragon",
title: "文档贡献组织",
links: [{ icon: "github", link: "https://github.com/Hex-Dragon" }],
},
{
avatar:
"https://jsd.onmicrosoft.cn/avatar/3eee0d09ddccea63d72a986732f62539.png",
name: "bingling-sama",
title: "文档贡献者",
links: [{ icon: "github", link: "https://github.com/bingling-sama" }],
},
]

export default members
17 changes: 5 additions & 12 deletions docs/.vitepress/theme/components/Contributors.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { useData } from "vitepress"
import { computed } from "vue"
import members from "../../data/members"
import { useData } from "vitepress";
import { computed } from "vue";
const defaultAuthor = "GlobeMC"
const { frontmatter } = useData()
Expand All @@ -14,17 +13,11 @@ const contributors = computed(() => {
})
function getAvatarUrl(name: string) {
return members.find((member) => {
return member.name === name
})?.avatar
return `https://cdn.crashmc.com/https://github.com/${name}.png`
}
function getGithubLink(name: string) {
return members.find((member) => {
return member.name === name
})?.links[0].link
return `https://cdn.crashmc.com/https://github.com/${name}`
}
function isNotEmpty(arr: string | string[]) {
return Array.isArray(arr) && arr.length
}
Expand Down Expand Up @@ -53,7 +46,7 @@ function isNotEmpty(arr: string | string[]) {
rel="noreferrer"
target="_blank"
class="flex items-center gap-2">
<img src="../../../public/logo-brand.png" class="w-8 h-8 rounded-full" />
<img src="/logo-brand.png" class="w-8 h-8 rounded-full" />
<p class="vp-main-clolr">{{ "GlobeMC" }}</p>
</a>
</div>
Expand Down
21 changes: 4 additions & 17 deletions docs/contribute/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,15 @@ contributors: [HRxiaohu]

:::

在您完成文档修改后,请进行以下操作,将你的名称添加到贡献者列表:

1. 请在 MarkDown 文档的最上方修改 contributors FrontMatter,以将您的名称添加到贡献者列表,格式如下。
在您完成文档修改后,请在 MarkDown 文档的最上方修改 contributors FrontMatter,以将您的 Github 用户名添加到贡献者列表,格式如下。

```MarkDown
---
contributors: [名称, 名称, 名称]
contributors: [用户名, 用户名, 用户名]
---
```

2. 请修改 [members.ts](https://github.com/GlobeMC/crashmc.com/blob/main/docs/.vitepress/data/members.ts) 文件,并按照如下格式添加您的信息。

```TypeScript
{
avatar: "头像链接 (请使用稳定的图床)",
name: "名称",
title: "文档贡献者",
links: [{ icon: "github", link: "您的 Github 个人资料链接" }],
},

```

:::warning 警告
上述代码中所使用的均为英文半角逗号!
- 请一定要使用 Github 用户名署名,否则我们无法获取您的头像。
- 上述代码中所使用的均为英文半角逗号!
:::

0 comments on commit 8e6abc0

Please sign in to comment.