Skip to content

Commit 1ac01f9

Browse files
committed
feat: add Team view
1 parent 72328b1 commit 1ac01f9

File tree

7 files changed

+145
-28
lines changed

7 files changed

+145
-28
lines changed
File renamed without changes.
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<script setup lang="ts">
2+
import {VPTeamMembers} from 'vitepress/theme';
3+
4+
const coreMembers = [
5+
{
6+
avatar: avatar('JorelAli'),
7+
name: 'JorelAli',
8+
title: 'Creator',
9+
links: [
10+
githubSocialLink('JorelAli')
11+
]
12+
}, {
13+
avatar: avatar('willkroboth'),
14+
name: 'Will Kroboth',
15+
title: '✨ Special Contributors ✨',
16+
links: [
17+
githubSocialLink('willkroboth')
18+
]
19+
}, {
20+
avatar: avatar('DerEchtePilz'),
21+
name: 'DerEchtePilz',
22+
title: '✨ Special Contributors ✨',
23+
links: [
24+
githubSocialLink('DerEchtePilz')
25+
]
26+
}
27+
]
28+
29+
const otherContributorsList = [
30+
"469512345",
31+
"Sytm",
32+
"MC-XiaoHei",
33+
"Timongcraft",
34+
"Strokkur424",
35+
"AkaGiant",
36+
"Osiris-Team",
37+
"Combustible",
38+
"SB2DD",
39+
"Euphillya",
40+
"CJCrafter",
41+
"Gregzeee",
42+
"powercasgamer",
43+
"agonkolgeci",
44+
"Xemii16",
45+
"Abelkrijgtalles",
46+
"dkim19375",
47+
"misode",
48+
"booky10",
49+
"NextdoorPsycho",
50+
"RedstoneWizard08",
51+
"Kadeluxe",
52+
"EnragedRabisu",
53+
"MatrixTunnel",
54+
"HielkeMinecraft",
55+
"Draycia",
56+
"Minenash",
57+
"Michael-Ziluck",
58+
"portlek"
59+
]
60+
61+
const earlyContributors = [
62+
"Combustible",
63+
"Draycia",
64+
"HielkeMinecraft",
65+
"Minenash",
66+
"Michael-Ziluck",
67+
"portlek",
68+
"469512345"
69+
]
70+
71+
const otherContributors = otherContributorsList.map(name => {
72+
if (earlyContributors.includes(name)) {
73+
return buildContributor(name, "Early Contributor")
74+
} else {
75+
return buildContributor(name)
76+
}
77+
})
78+
79+
function avatar(name: string) {
80+
return `https://wsrv.nl/?url=https://www.github.com/${name}.png`
81+
}
82+
83+
function githubSocialLink(name: string) {
84+
return {icon: 'github', link: `https://github.com/${name}`}
85+
}
86+
87+
function buildContributor(name: string, title: string = "Contributor") {
88+
return {
89+
avatar: avatar(name),
90+
name: name,
91+
title: title,
92+
links: [
93+
githubSocialLink(name)
94+
]
95+
}
96+
}
97+
98+
</script>
99+
100+
<template>
101+
<div>
102+
<br/>
103+
<h1>Brought to you by</h1>
104+
<VPTeamMembers size="medium" :members="coreMembers"/>
105+
<h3>Other Contributors</h3>
106+
<VPTeamMembers size="small" :members="otherContributors"/>
107+
</div>
108+
</template>
109+
110+
<style scoped>
111+
112+
</style>

docs/.vitepress/theme/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type {Theme} from 'vitepress'
22
import DefaultTheme from 'vitepress/theme'
3-
import PluginTabs from './components/PluginTabs.vue'
4-
import PluginTabsTab from './components/PluginTabsTab.vue'
3+
import PluginTabs from './tabs/PluginTabs.vue'
4+
import PluginTabsTab from './tabs/PluginTabsTab.vue'
55
import {provideTabsSharedState} from './tabs/useTabsSelectedState'
6-
import PreferenceSwitch from './components/PreferenceSwitch.vue';
6+
import PreferenceSwitch from './prefer/PreferenceSwitch.vue';
77
import mediumZoom from "medium-zoom";
88
import {onMounted, watch, nextTick, h} from 'vue'
99
import {useData, useRoute} from 'vitepress'
10-
import AuthorsComponent from "./components/Authors.vue";
10+
import AuthorsComponent from "./components/PageAuthors.vue";
1111
import {NolebaseEnhancedReadabilitiesMenu, NolebaseEnhancedReadabilitiesScreenMenu} from "@nolebase/vitepress-plugin-enhanced-readabilities";
1212

1313
import './style/global.css'

docs/.vitepress/theme/components/PreferenceSwitch.vue renamed to docs/.vitepress/theme/prefer/PreferenceSwitch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
preferMavenKey,
1414
preferMojmap,
1515
preferMojmapKey,
16-
} from "../prefer/prefer";
16+
} from "./prefer";
1717
1818
const {frontmatter} = useData();
1919
let preferencesToDisplay: Ref<string[]> = ref();

docs/.vitepress/theme/components/PluginTabs.vue renamed to docs/.vitepress/theme/tabs/PluginTabs.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<script setup lang="ts">
44
import { ref, toRef } from 'vue'
5-
import { useStabilizeScrollPosition } from '../tabs/useStabilizeScrollPosition'
6-
import { useTabsSelectedState } from '../tabs/useTabsSelectedState'
7-
import { useUid } from '../tabs/useUid'
8-
import { useTabLabels } from '../tabs/useTabLabels'
9-
import { provideTabsSingleState } from '../tabs/useTabsSingleState'
5+
import { useStabilizeScrollPosition } from './useStabilizeScrollPosition'
6+
import { useTabsSelectedState } from './useTabsSelectedState'
7+
import { useUid } from './useUid'
8+
import { useTabLabels } from './useTabLabels'
9+
import { provideTabsSingleState } from './useTabsSingleState'
1010
1111
const props = defineProps<{ sharedStateKey?: string }>()
1212

docs/.vitepress/theme/components/PluginTabsTab.vue renamed to docs/.vitepress/theme/tabs/PluginTabsTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--copy from https://github.com/sapphi-red/vitepress-plugins , original license is MIT-->
22

33
<script setup lang="ts">
4-
import { useTabsSingleState } from '../tabs/useTabsSingleState'
4+
import { useTabsSingleState } from './useTabsSingleState'
55
66
defineProps<{ label: string }>()
77

docs/en/index.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,29 @@
33
layout: home
44

55
hero:
6-
name: "Command API"
7-
tagline: An API for the command UI introduced in Minecraft 1.13
8-
actions:
9-
- theme: brand
10-
text: Introduction
11-
link: /intro
12-
- theme: alt
13-
text: Download
14-
link: https://github.com/CommandAPI/CommandAPI/releases/latest
6+
name: "Command API"
7+
tagline: An API for the command UI introduced in Minecraft 1.13
8+
actions:
9+
- theme: brand
10+
text: Introduction
11+
link: /intro
12+
- theme: alt
13+
text: Download
14+
link: https://github.com/CommandAPI/CommandAPI/releases/latest
1515

1616
features:
17-
- title: Better Commands & Arguments
18-
details: Prevent invalid commands and support over 50 arguments with built-in error checking, suggestions, tooltips, and precise permission.
19-
- title: Just Like Vanilla Commands
20-
details: Let your command to be executed by the built in <code>/execute</code> command, commandblocks, functions and tags.
21-
- title: Easy to Register
22-
details: No need to edit <code>plugin.yml</code>, supports Kotlin DSL, and Brigadier-like <code>CommandTree</code>. And provide detailed documentation.
23-
17+
- title: Better Commands & Arguments
18+
details: Prevent invalid commands and support over 50 arguments with built-in error checking, suggestions, tooltips, and precise permission.
19+
- title: Just Like Vanilla Commands
20+
details: Let your command to be executed by the built in <code>/execute</code> command, commandblocks, functions and tags.
21+
- title: Easy to Register
22+
details: No need to edit <code>plugin.yml</code>, supports Kotlin DSL, and Brigadier-like <code>CommandTree</code>. And provide detailed documentation.
2423
---
2524

26-
<br/>
25+
<script setup>
26+
27+
import ProjectTeam from '../.vitepress/theme/components/ProjectTeam.vue';
28+
29+
</script>
30+
31+
<ProjectTeam></ProjectTeam>

0 commit comments

Comments
 (0)