Skip to content
This repository was archived by the owner on Aug 19, 2023. It is now read-only.

Commit aa07c14

Browse files
authored
GH-81 Connect website with github for use pinned repos (#81)
1 parent 0b3554f commit aa07c14

File tree

8 files changed

+32
-44
lines changed

8 files changed

+32
-44
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7.89 KB
Loading

src/components/projects/Projects.vue

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,45 @@
11
<template>
22
<section id="projects">
3-
43
<h1>{{ $t("message.projects.title") }}</h1>
54
<p>{{ $t("message.projects.subtitle") }}</p>
6-
75
<div class="row projects-row">
86
<Project
9-
description="♾️ All the most important server functions in one!️"
10-
githubUrl="https://github.com/EternalCodeTeam/EternalCore"
11-
imageUrl="/assets/img/projects/infinity.webp"
12-
name="EternalCore"
13-
:hrefText="$t('message.projects.more')"
14-
/>
15-
<Project
16-
description="📝 The most intelligent chat formatting plugin with minimessages support!"
17-
githubUrl="https://github.com/EternalCodeTeam/ChatFormatter"
18-
spigotUrl="https://www.spigotmc.org/resources/102212/"
19-
modrinth-url="https://modrinth.com/plugin/chatformatter"
20-
imageUrl="/assets/img/projects/chat.webp"
21-
name="ChatFormatter"
22-
:hrefText="$t('message.projects.more')"
23-
/>
24-
<Project
25-
description="⚔ Combat Logging system for Minecraft!"
26-
githubUrl="https://github.com/EternalCodeTeam/EternalCombatLog"
27-
imageUrl="/assets/img/projects/swords.webp"
28-
name="CombatLog"
29-
:hrefText="$t('message.projects.more')"
30-
/>
31-
<Project
32-
description="👮‍♂️ EternalCode discord community officer!"
33-
githubUrl="https://github.com/EternalCodeTeam/DiscordOfficer"
34-
imageUrl="/assets/img/projects/police-officer.webp"
35-
name="DiscordOfficer"
36-
:hrefText="$t('message.projects.more')"
37-
/>
38-
<Project
39-
description="📖 All documentations of EternalCodeTeam Projects & Tutorials 😍"
40-
githubUrl="https://github.com/EternalCodeTeam/Docs"
41-
imageUrl="/assets/img/projects/folder.webp"
42-
name="Docs"
43-
:hrefText="$t('message.projects.more')"
44-
/>
45-
<Project
46-
description="🏬 EternalCodeTeam website based on Bootstrap 5 and Vue.js!"
47-
githubUrl="https://github.com/EternalCodeTeam/EternalCode-WWW"
48-
imageUrl="/assets/img/projects/web.webp"
49-
name="EternalCode-WWW"
7+
v-for="(project, index) in projects"
8+
:key="index"
9+
:description="project.description"
10+
:githubUrl="project.link"
5011
:hrefText="$t('message.projects.more')"
12+
:imageUrl="'/assets/img/projects/logo/' + project.repo + '_icon.webp'"
13+
:spigotUrl="projectLinks[project.repo]?.spigotmc"
14+
:modrinthUrl="projectLinks[project.repo]?.modrinth"
15+
:name="project.repo"
5116
/>
52-
5317
</div>
5418
</section>
5519
</template>
5620

5721
<script>
5822
import Project from "./components/Project.vue";
23+
import projectLinks from "@/info/project_links.json"
5924
6025
export default {
6126
name: "Projects",
6227
components: {
6328
Project,
6429
},
30+
data() {
31+
return {
32+
projects: [],
33+
projectLinks: projectLinks
34+
};
35+
},
36+
mounted() {
37+
fetch("https://gh-pinned-repos.egoist.dev/?username=eternalcodeteam")
38+
.then(response => response.json())
39+
.then(data => {
40+
this.projects = data;
41+
});
42+
},
6543
};
6644
</script>
6745

src/info/project_links.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"ChatFormatter": {
3+
"spigotmc": "https://www.spigotmc.org/resources/%EF%B8%8F-chatformatter-%E2%9C%94%EF%B8%8F-minimessages-%E2%9C%94%EF%B8%8F-template-system-%E2%9C%94%EF%B8%8F-placeholders-%E2%9C%94%EF%B8%8F-vault-support.102212/",
4+
"modrinth": "https://modrinth.com/plugin/chatformatter"
5+
},
6+
"EternalCombat": {
7+
"spigotmc": "https://www.spigotmc.org/resources/eternalcombat-%E2%9C%94%EF%B8%8Fenchance-your-combat-system-with-eternalcombat.109056/",
8+
"modrinth": "https://modrinth.com/plugin/eternalcombat"
9+
}
10+
}

0 commit comments

Comments
 (0)