diff --git a/public/robots.txt b/public/robots.txt index 7bf2479b..7bdcb61b 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,4 +1,5 @@ User-agent: * Disallow: /acornmc/ Disallow: /terms/ -Disallow: https://rgb.birdlfop.com \ No newline at end of file +Disallow: https://rgb.birdlfop.com +Disallow: /resources/rgb/* diff --git a/src/routes/plans/index.tsx b/src/routes/plans/index.tsx index 3d87f7c0..1f2f1a71 100644 --- a/src/routes/plans/index.tsx +++ b/src/routes/plans/index.tsx @@ -62,7 +62,7 @@ export const plans = { '6 Logical Cores', 'Unmetered* NVMe Storage', ], - outOfStock: true, + outOfStock: false, }, }; diff --git a/src/routes/resources/jars/index.tsx b/src/routes/resources/jars/index.tsx deleted file mode 100644 index 47eef29e..00000000 --- a/src/routes/resources/jars/index.tsx +++ /dev/null @@ -1,148 +0,0 @@ -import { component$, useStore, useSignal } from '@builder.io/qwik'; -import { Header } from '@luminescent/ui-qwik'; -import { CloseOutline, DownloadOutline } from 'qwik-ionicons'; - -async function fetchLatestPurpurVersion() { - const response = await fetch('https://api.purpurmc.org/v2/purpur'); - const data = await response.json(); - const versions = data.versions; - const latestVersion = versions[versions.length - 1]; - return `https://api.purpurmc.org/v2/purpur/${latestVersion}/latest/download`; -} - -async function fetchLatestPaperVersion() { - const response = await fetch('https://papermc.io/api/v2/projects/paper'); - const data = await response.json(); - const versions = data.versions; - const latestVersion = versions[versions.length - 1]; - const buildResponse = await fetch(`https://papermc.io/api/v2/projects/paper/versions/${latestVersion}`); - const buildData = await buildResponse.json(); - const latestBuild = buildData.builds[buildData.builds.length - 1]; - const downloadResponse = await fetch(`https://papermc.io/api/v2/projects/paper/versions/${latestVersion}/builds/${latestBuild}`); - const downloadData = await downloadResponse.json(); - const downloadName = downloadData.downloads.application.name; - return `https://papermc.io/api/v2/projects/paper/versions/${latestVersion}/builds/${latestBuild}/downloads/${downloadName}`; -} - -async function fetchLatestPufferfishVersion() { - const response = await fetch('https://ci.pufferfish.host/job/Pufferfish-1.20/api/json?tree=builds[number,status,timestamp,id,result,changeSet[items[comment,commitId]],artifacts[*]]'); - const data = await response.json(); - const latestBuild = data.builds[0]; - const latestBuildNumber = latestBuild.number; - const artifact = latestBuild.artifacts.find((a: any) => a.fileName.endsWith('.jar')); - return `https://ci.pufferfish.host/job/Pufferfish-1.20/${latestBuildNumber}/artifact/${artifact.relativePath}`; -} - -function getDownloadLink(jarName: string) { - switch (jarName) { - case 'PurpurMC': - return fetchLatestPurpurVersion(); - case 'PaperMC': - return fetchLatestPaperVersion(); - case 'Pufferfish': - return fetchLatestPufferfishVersion(); - default: - return ''; - } -} - -const serverJars = [ - { - name: 'PurpurMC', - website: 'https://purpurmc.org/', - logo: 'https://purpurmc.org/docs/images/purpur-small.png', - description: 'Purpur aims to provide a high-performance, stable!', - longDescription: 'PurpurMC provides additional enhancements and features on top of the PaperMC server. Includes advanced configuration options, additional commands, and more control over server performance.', - }, - { - name: 'PaperMC', - website: 'https://papermc.io/', - logo: 'https://docs.papermc.io/assets/images/papermc-logomark-512-f125384f3367cd4d9291ca983fcb7334.png', - description: 'PaperMC is designed to improve performance and customization!', - longDescription: 'PaperMC is a high performance Minecraft server that is compatible with the Vanilla Minecraft server. It is designed to be lightweight and fast, providing a smooth experience for players.', - }, - { - name: 'Pufferfish', - website: 'https://pufferfish.host', - logo: 'https://pufferfish.host/_next/static/images/pufferfish-mark-610a2bf4c7063641b6d396a5e9d0760f.svg', - description: 'A highly optimized Paper fork designed for large servers!', - longDescription: 'Pufferfish is a Minecraft server software that is designed to be lightweight and easy to use. It is compatible with the Vanilla Minecraft server and provides additional features and enhancements.', - }, -]; - -export default component$(() => { - const store = useStore({ - searchTerm: '', - selectedJar: null as typeof serverJars[number] | null, - latestVersion: '', - downloadLink: '', - }); - - const filteredJars = serverJars.filter((jar) => - jar.name.toLowerCase().includes(store.searchTerm.toLowerCase()), - ); - - const modalRef = useSignal(); - - return ( -
-
-

Jarflop - The Minecraft Server Jar Hub!

-
- store.searchTerm = el.value} - /> -
-
-
- {filteredJars.length > 0 ? ( - filteredJars.map((jar, index) => ( - - )) - ) : ( -

No results found. If you are wanting a new server jar added please contact us!

- )} -
-
-
- -
- {`${store.selectedJar?.name} -

{store.selectedJar?.name}

- -
-

{store.selectedJar?.longDescription}

- - Download Latest Version - -
-
- ); -}); \ No newline at end of file