mirror of
https://github.com/xHyroM/website.git
synced 2024-12-22 12:31:06 +01:00
feat(projects): add more projects, sort
This commit is contained in:
parent
34c6d2b110
commit
13b76153ab
1 changed files with 26 additions and 0 deletions
|
@ -10,6 +10,7 @@ interface Project {
|
|||
stats?: {
|
||||
forks: number;
|
||||
stars: number;
|
||||
updated_at: Date;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -64,6 +65,26 @@ const projects: Project[] = [
|
|||
link: "https://github.com/xHyroM/frog",
|
||||
desc: "Frog is an extremely simple language based on the monkey language.",
|
||||
},
|
||||
{
|
||||
name: "lsx",
|
||||
link: "https://github.com/xHyroM/lsx",
|
||||
desc: "Lsx is a simple, fast, and easy to use ls implementation in Rust.",
|
||||
},
|
||||
{
|
||||
name: "Slovensko v Grafoch",
|
||||
link: "https://github.com/xHyroM/slovensko-v-grafoch",
|
||||
desc: "Slovensko v Grafoch is a website that shows data about Slovakia in graphs.",
|
||||
},
|
||||
{
|
||||
name: "Peddler's Pocket",
|
||||
link: "https://github.com/xHyroM/peddlerspocket",
|
||||
desc: "/sell command that allows you to put things into GUI and then sell them by closing",
|
||||
},
|
||||
{
|
||||
name: "Peak Pursuit",
|
||||
link: "https://github.com/xHyroM/peakpursuit",
|
||||
desc: "PeakPursuit is a plugin for King of the Hill events that adds a competitive edge to your server gameplay. Conquer the hill and claim the crown!",
|
||||
},
|
||||
];
|
||||
|
||||
for (const project of projects) {
|
||||
|
@ -78,8 +99,13 @@ for (const project of projects) {
|
|||
project.stats = {
|
||||
forks: repository.forks,
|
||||
stars: repository.stargazers_count,
|
||||
updated_at: new Date(repository.updated_at),
|
||||
};
|
||||
}
|
||||
|
||||
projects.sort(
|
||||
(a, b) => b.stats!.updated_at.getTime() - a.stats!.updated_at.getTime()
|
||||
);
|
||||
---
|
||||
|
||||
<Layout
|
||||
|
|
Loading…
Reference in a new issue