Skip to content

Commit 9b297e7

Browse files
author
DerGoogler
committed
add repo team members
1 parent 6ee3844 commit 9b297e7

File tree

6 files changed

+1307
-181
lines changed

6 files changed

+1307
-181
lines changed

docs/components/repository/ModuleItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<script setup>
22
import { toFormattedFileSize } from "../../helper/toFormattedFileSize";
33
import { useData } from "vitepress";
4-
import VPLink from "../vite/VPLink.vue";
4+
5+
import { VPLink } from 'vitepress/theme'
56
67
const props = defineProps(["module", "params"]);
78

docs/components/repository/RepoHeader.vue

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<script setup>
2-
import VPButton from "../vite/VPButton.vue";
2+
import { ref } from 'vue'
3+
import { VPTeamMembers, VPButton } from 'vitepress/theme'
34
4-
defineProps(["repo"]);
5+
defineProps(["repo", "internalRepo"]);
6+
7+
const showModal = ref(false)
58
</script>
69

710
<template>
@@ -10,11 +13,27 @@ defineProps(["repo"]);
1013
<span :class="$style.repoTitle">{{ repo.name }}</span>
1114
<span v-if="repo.description" :class="$style.repoDetails">{{ repo.description }}</span>
1215
<div v-if="repo.submission || repo.support || repo.donate" :class="$style.repoActions">
13-
<VPButton v-if="repo.submission" text="Submit Module" size="medium" theme="brand" :href="repo.submission" />
14-
<VPButton v-if="repo.support" text="Support" size="medium" theme="alt" :href="repo.support" />
15-
<VPButton v-if="repo.donate" text="Donate" size="medium" theme="sponsor" :href="repo.donate" />
16+
<VPButton tag="a" v-if="repo.submission" text="Submit Module" size="medium" theme="brand" :href="repo.submission" />
17+
<VPButton tag="a" v-if="repo.support" text="Support" size="medium" theme="alt" :href="repo.support" />
18+
<VPButton v-if="internalRepo.members" text="Team" size="medium" theme="alt" @click="showModal = true" />
19+
<VPButton tag="a" v-if="repo.donate" text="Donate" size="medium" theme="sponsor" :href="repo.donate" />
1620
</div>
1721
</div>
22+
<Teleport v-if="internalRepo.members" to="body">
23+
<Transition name="modal">
24+
<div v-show="showModal" class="modal-mask">
25+
<div class="modal-container">
26+
<div>
27+
<h2 class="modal-title">Repository Members</h2>
28+
<VPTeamMembers size="small" :members="internalRepo.members" />
29+
</div>
30+
<div class="model-footer">
31+
<VPButton size="medium" theme="alt" text="Close" @click="showModal = false" />
32+
</div>
33+
</div>
34+
</div>
35+
</Transition>
36+
</Teleport>
1837
</template>
1938

2039
<style module>
@@ -51,3 +70,58 @@ defineProps(["repo"]);
5170
color: var(--vp-c-text-2);
5271
}
5372
</style>
73+
74+
<style scoped>
75+
a {
76+
color: inherit !important;
77+
text-decoration: inherit !important;
78+
}
79+
80+
.modal-title {
81+
display: flex;
82+
letter-spacing: -0.02em;
83+
line-height: 40px;
84+
font-size: 32px;
85+
margin-bottom: 16px;
86+
}
87+
88+
.modal-mask {
89+
position: fixed;
90+
z-index: 200;
91+
top: 0;
92+
left: 0;
93+
width: 100%;
94+
height: 100%;
95+
background-color: rgba(0, 0, 0, 0.5);
96+
display: flex;
97+
align-items: center;
98+
justify-content: center;
99+
transition: opacity 0.3s ease;
100+
}
101+
102+
.modal-container {
103+
width: 88%;
104+
max-width: 1152px;
105+
margin: auto;
106+
padding: 20px 30px;
107+
background-color: var(--vp-c-bg);
108+
border-radius: 12px;
109+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
110+
transition: all 0.3s ease;
111+
}
112+
113+
.model-footer {
114+
margin-top: 16px;
115+
text-align: right;
116+
}
117+
118+
.modal-enter-from,
119+
.modal-leave-to {
120+
opacity: 0;
121+
}
122+
123+
.modal-enter-from .modal-container,
124+
.modal-leave-to .modal-container {
125+
transform: scale(1.1);
126+
}
127+
</style>

docs/en/repository/[name].md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@ const openUrl = (url) => {
3232
</script>
3333

3434
<div v-if="data">
35-
<RepoHeader :repo="data" />
35+
<RepoHeader :repo="data" :internalRepo="repository" />
3636
<div :class="$style.items" v-for="module in data.modules">
3737
<div :class="$style.item">
3838
<ModuleItem :module="module" :params="$params" />
3939
</div>
4040
</div>
4141
</div>
4242

43+
44+
<style scoped>
45+
a {
46+
color: inherit !important;
47+
text-decoration: none !important;
48+
}
49+
</style>
50+
4351
<style module>
4452
.item {
4553
padding: 8px;

docs/en/repository/[name]/[id].md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ next: false
77
<script setup>
88
import { ref, onMounted, computed } from 'vue'
99
import { useData } from 'vitepress'
10-
11-
import VPLink from "../../../components/vite/VPLink.vue"
12-
import VPButton from "../../../components/vite/VPButton.vue"
10+
import { VPLink, VPButton } from 'vitepress/theme'
1311

1412
const { params } = useData()
1513

@@ -43,6 +41,8 @@ const latestVersion = computed(() => {
4341
4442
</div>
4543

44+
{{data}}
45+
4646
{{ module.description }}
4747

4848
<div :class="$style.moduleActions">

meta/repositories.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,86 @@
11
- id: gmr
22
name: Googlers Magisk Repo
33
maintainers: []
4+
members:
5+
- avatar: https://www.github.com/DerGoogler.png
6+
name: Der_Googler
7+
title: Owner
8+
links:
9+
- icon: github
10+
link: https://github.com/DerGoogler
411
url: https://gr.dergoogler.com/gmr/
512

613
- id: mmar
714
name: Magisk Modules Alternative Repo
815
maintainers: []
16+
members:
17+
- avatar: https://www.github.com/tytydraco.png
18+
name: Tyler Nijmeh
19+
title: Owner
20+
links:
21+
- icon: github
22+
link: https://github.com/tytydraco
23+
- avatar: https://www.github.com/Atrate.png
24+
name: Atrate
25+
title: Owner
26+
links:
27+
- icon: github
28+
link: https://github.com/Atrate
29+
- avatar: https://www.github.com/DerGoogler.png
30+
name: Der_Googler
31+
title: Moderator
32+
links:
33+
- icon: github
34+
link: https://github.com/DerGoogler
35+
- avatar: https://www.github.com/Fox2Code.png
36+
name: Fox2Code
37+
title: Moderator
38+
links:
39+
- icon: github
40+
link: https://github.com/Fox2Code
41+
- avatar: https://www.github.com/HuskyDG.png
42+
name: HuskyDG
43+
title: Moderator
44+
links:
45+
- icon: github
46+
link: https://github.com/HuskyDG
947
url: https://magisk-modules-alt-repo.github.io/json-v2/
1048

1149
- id: imr
1250
name: IzzyOnDroid Magisk Repository
1351
maintainers: []
52+
members:
53+
- avatar: https://www.github.com/IzzySoft.png
54+
name: IzzySoft
55+
title: Owner
56+
links:
57+
- icon: github
58+
link: https://github.com/IzzySoft
59+
- icon: gitlab
60+
link: https://gitlab.com/IzzySoft
1461
url: https://apt.izzysoft.de/magisk/
1562

1663
- id: mmrr
1764
name: Magisk Modules Rikj000 Repo
65+
members:
66+
- avatar: https://www.github.com/Rikj000.png
67+
name: Rikj000
68+
title: Owner
69+
links:
70+
- icon: github
71+
link: https://github.com/Rikj000
1872
maintainers: []
1973
url: https://rikj000.github.io/Magisk-Modules-Rikj000-Repo/
2074

2175
- id: cmmr
2276
name: Celica Magisk Modules Repo
77+
members:
78+
- avatar: https://www.github.com/natsumerinchan.png
79+
name: natsumerinchan
80+
title: Owner
81+
links:
82+
- icon: github
83+
link: https://github.com/natsumerinchan
2384
maintainers: []
2485
url: https://natsumerinchan.github.io/celica-magisk-modules-repo/
2586

0 commit comments

Comments
 (0)