|
1 | 1 | <template>
|
2 | 2 | <section id="projects">
|
3 |
| - |
4 | 3 | <h1>{{ $t("message.projects.title") }}</h1>
|
5 | 4 | <p>{{ $t("message.projects.subtitle") }}</p>
|
6 |
| - |
7 | 5 | <div class="row projects-row">
|
8 | 6 | <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" |
50 | 11 | :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" |
51 | 16 | />
|
52 |
| - |
53 | 17 | </div>
|
54 | 18 | </section>
|
55 | 19 | </template>
|
56 | 20 |
|
57 | 21 | <script>
|
58 | 22 | import Project from "./components/Project.vue";
|
| 23 | +import projectLinks from "@/info/project_links.json" |
59 | 24 |
|
60 | 25 | export default {
|
61 | 26 | name: "Projects",
|
62 | 27 | components: {
|
63 | 28 | Project,
|
64 | 29 | },
|
| 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 | + }, |
65 | 43 | };
|
66 | 44 | </script>
|
67 | 45 |
|
|
0 commit comments