Push REPO Site

This commit is contained in:
2025-03-15 07:36:43 -05:00
parent adda3c2087
commit 04e2451943
77 changed files with 6883 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,37 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
h1 {
padding-bottom: 10px;
font-family: 'Open Sans', sans-serif;
font-size: 48px;
margin: 0 auto;
text-align: center;
color: #f5f5f5;
}
h3 {
padding-bottom:35px;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
margin: 0 auto;
text-align: center;
font-weight: 600;
color: #e3e3e3;
}
a {
color: lightblue;
}
body {
min-height: 90vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #171717;
animation: fadeIn 3s;
padding: 0;
margin: 0;
font-family: 'Open Sans Semibold', sans-serif;
}

View File

@@ -0,0 +1,179 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #171717;
animation: fadeIn 2s;
padding: 0;
margin: 0;
background: rgba(0, 0, 0, .5) url('../../media/downloads.gif');
background-blend-mode: darken;
background-size: cover;
}
.content {
position: relative;
}
.image {
margin: 0 auto;
display: block;
padding-bottom: 25px;
width: 210px;
-webkit-filter: drop-shadow(5px 5px 5px rgba(34, 34, 34, 0.3));
filter: drop-shadow(5px 5px 5px rgba(34, 34, 34, 0.3));
}
.content h1 {
padding-bottom: 10px;
font-family: 'Open Sans', sans-serif;
font-size: 48px;
margin: 0 auto;
text-align: center;
color: #f5f5f5;
}
.content h3 {
padding-bottom:35px;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
margin: 0 auto;
text-align: center;
font-weight: 600;
max-width: 400px;
color: #e3e3e3;
}
.links {
text-align: center;
}
.link {
background-color: #FFB954;
font-family: 'Open Sans', sans-serif;
font-weight: 600;
color: white;
text-decoration: none;
padding: 5px 15px;
border-radius: 5px;
text-align: center;
margin: 0 0.2em;
display: block;
width: 100px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
transition: 0.3s;
display: inline-block
}
.link:hover {
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3);
animation: pulse 2s infinite;
}
.pulse {
margin:100px;
display: block;
width: 22px;
height: 22px;
border-radius: 50%;
background: #f00505;
box-shadow: 0 0 0 #f00505;
animation: pulse 2s infinite;
}
@-webkit-keyframes pulse {
0% {
-webkit-box-shadow: 0 0 0 0 #f00505;
}
70% {
-webkit-box-shadow: 0 0 0 10px rgba(204,169,44, 0);
}
100% {
-webkit-box-shadow: 0 0 0 0 rgba(204,169,44, 0);
}
}
@keyframes pulse {
0% {
-moz-box-shadow: 0 0 0 0 #f00505;
box-shadow: 0 0 0 0 #f00505;
}
70% {
-moz-box-shadow: 0 0 0 10px rgba(204,169,44, 0);
box-shadow: 0 0 0 10px rgba(204,169,44, 0);
}
100% {
-moz-box-shadow: 0 0 0 0 rgba(204,169,44, 0);
box-shadow: 0 0 0 0 rgba(204,169,44, 0);
}
}
.github {
background-color: #353535;
}
.discord {
background-color: #7289DA;
}
.thunderstore {
background-color: #0b82e4;
}
.nexus {
background-color: #d98f40;
}
.stable {
background-color: #c20100;
}
.torrents {
background-color: #08aff1;
}
.beta {
background-color: #d81713;
}
.stats {
background-color: #404040;
position: relative;
display: block;
margin: 0 auto;
width: 16em;
bottom: -5em;
padding: 0.1em 0.1em;
height: 1.6em;
border-radius: 0.3em;
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(5px);
}
100% {
opacity: 1;
}
}
body {
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -0,0 +1,83 @@
let table = document.getElementById("table");
// we'll show it later
document.getElementById('stable').style.display = 'none'
var request = new XMLHttpRequest();
request.open("GET", "https://api.yatopiamc.org/v2/builds?branch=" + BRANCH, true);
request.onload = () => {
let jsonResponse = JSON.parse(request.responseText);
if (jsonResponse['error'] != null) {
document.getElementById('error').style.display = 'block'
document.getElementById('buildsAre').style.display = 'none'
return;
}
let builds = jsonResponse['builds'];
document.getElementById('buildsAre').innerText = "These builds are for Minecraft " + VERSION + ".";
for (var i = 0; i < builds.length; i++) {
let build = builds[i];
if (build['status'] === "FAILURE" || build['status'] === "BUILDING") {
continue;
}
var commitMessage = "";
var dateMessage = "";
let changeSets = build['changeSets'];
for (var i1 = 0; i1 < changeSets.length; i1++) {
let changeSet = changeSets[i1];
commitMessage += changeSet['message'] + ` [<a href="https://github.com/YatopiaMC/Yatopia/commit/${changeSet['sha']}">commit</a>]<br>`;
dateMessage += changeSet['authoredAt'].split(" ")[0] + "<br>";
}
if ((i + 1 < builds.length) && builds[i + 1]['status'] === "FAILURE") {
let messages = getFailureBuildsUntilSuccessfulFromLatest(builds, i + 1).split("\00");
commitMessage += messages[0];
dateMessage += messages[1];
}
let row = table.insertRow(-1);
row.insertCell(0).innerHTML = `<a class="download-button" href="${build['downloadUrl']}">#${build['number']} <span class="material-icons">get_app</span></a>`;
if (commitMessage.length === 0) {
row.insertCell(1).innerHTML = `<i>No changes from previous build</i>`
} else {
row.insertCell(1).innerHTML = commitMessage;
}
if (dateMessage.length === 0) {
row.insertCell(2).innerHTML = `<i>unknown</i>`
} else {
row.insertCell(2).innerHTML = dateMessage;
}
}
}
request.send(null)
var stableRequest = new XMLHttpRequest()
stableRequest.open("GET", "https://api.yatopiamc.org/v2/stableBuild?branch=" + BRANCH, true)
stableRequest.onload = () => {
let response = JSON.parse(stableRequest.responseText);
if (response['error'] != null) {
document.getElementById('stable').style.display = 'none'
return;
}
document.getElementById('stable').outerHTML = `<a id="stable" class="download-button" href="${response['downloadUrl']}">Latest stable build: #${response['number']}<span class="material-icons">get_app</span></a>`
}
stableRequest.send(null)
function getFailureBuildsUntilSuccessfulFromLatest(builds, from) {
var commitMessage = "";
var dateMessage = "";
for (var i = from; i < builds.length; i++) {
let build = builds[i];
let changeSets = build['changeSets'];
if (build['status'] === "FAILURE") {
for (var i1 = 0; i1 < changeSets.length; i1++) {
let changeSet = changeSets[i1];
commitMessage += changeSet['message'] + ` [<a href="https://github.com/YatopiaMC/Yatopia/commit/${changeSet['sha']}">commit</a>]<br>`;
dateMessage += changeSet['authoredAt'].split(" ")[0] + "<br>";
}
}
if (build['status'] === "SUCCESS" && i !== from) {
break;
}
}
return commitMessage + "\00" + dateMessage;
}

View File

@@ -0,0 +1,2 @@
const BRANCH = "ver/1.16.5"
const VERSION = "1.16.5"

View File

@@ -0,0 +1,7 @@
let stats = document.getElementById("stats");
var request = new XMLHttpRequest();
request.open("GET", "https://bstats.org/api/v1/plugins/8840/charts/servers/data?maxElements=1", true);
request.onload = () => {
stats.innerText = `⚡ Powering ${JSON.parse(request.responseText)[0][1]} servers.`
}
request.send(null)