fix build and format files to match code style

This commit is contained in:
Akis 2022-06-18 19:26:58 +03:00
parent d5a7a0c031
commit 928e025114
17 changed files with 265 additions and 229 deletions

View File

@ -5,7 +5,7 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: "npm" # See documentation for possible values - package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests directory: "/" # Location of package manifests
schedule: schedule:
interval: "daily" interval: "daily"

View File

@ -22,4 +22,3 @@ jobs:
commit-message: Successfully built commit-message: Successfully built
clean: true clean: true
single-commit: false single-commit: false

View File

@ -2,8 +2,14 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/logo.png" /> <link
<meta name="viewport" content="width=device-width, initial-scale=1" /> rel="icon"
href="%sveltekit.assets%/logo.png"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
%sveltekit.head% %sveltekit.head%
</head> </head>
<body> <body>

View File

@ -1,70 +1,70 @@
<script> <script>
import IconDiscord from "~icons/simple-icons/discord"; import IconDiscord from "~icons/simple-icons/discord";
import IconMatrix from "~icons/simple-icons/matrix"; import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github"; import IconGitHub from "~icons/simple-icons/github";
import IconSignal from "~icons/fa6-solid/signal"; import IconSignal from "~icons/fa6-solid/signal";
</script> </script>
<footer> <footer>
<hr /> <hr />
<div class="content"> <div class="content">
<span>© 2021 - present, Project Segfault</span> <span>© 2021 - present, Project Segfault</span>
<div class="links"> <div class="links">
<a href="https://matrix.to/#/#project-segfault:projectsegfau.lt"> <a href="https://matrix.to/#/#project-segfault:projectsegfau.lt">
<IconMatrix /> <IconMatrix />
</a> </a>
<a href="https://discord.gg/26EG7fFtfS"> <a href="https://discord.gg/26EG7fFtfS">
<IconDiscord /> <IconDiscord />
</a> </a>
<a href="https://github.com/ProjectSegfault"> <a href="https://github.com/ProjectSegfault">
<IconGitHub /> <IconGitHub />
</a> </a>
<a href="https://status.projectsegfau.lt/"> <a href="https://status.projectsegfau.lt/">
<IconSignal /> <IconSignal />
</a> </a>
</div> </div>
</div> </div>
</footer> </footer>
<style> <style>
footer { footer {
padding: 1rem; padding: 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: 20px; font-size: 20px;
} }
hr { hr {
color: var(--accent-primary); color: var(--accent-primary);
width: 100%; width: 100%;
margin-left: 0; margin-left: 0;
} }
div.content { div.content {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
div.links { div.links {
display: flex; display: flex;
gap: 12px; gap: 12px;
margin-left: 8px; margin-left: 8px;
} }
.links a { .links a {
text-decoration: none; text-decoration: none;
} }
@media only screen and (max-width: 500px) { @media only screen and (max-width: 500px) {
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px; gap: 8px;
} }
div.links { div.links {
margin-left: 0; margin-left: 0;
} }
} }
</style> </style>

View File

@ -1,86 +1,91 @@
<script> <script>
import * as strings from "$lib/strings"; import * as strings from "$lib/strings";
</script> </script>
<nav> <nav>
<a class="brand" href="/"> <a class="brand" href="/">
<img src="/logo.png" alt="Project Segfault logo"> <img src="/logo.png" alt="Project Segfault logo" />
<span style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;">{strings.PROJECT}</span> <span
<span style="color: var(--accent-primary); margin-right: 8px;">{strings.SEGFAULT}</span> style="color: var(--accent-secondary); margin-left: 4px; margin-right: 4px;"
</a> >{strings.PROJECT}</span
>
<span style="color: var(--accent-primary); margin-right: 8px;"
>{strings.SEGFAULT}</span
>
</a>
<div class="links"> <div class="links">
<a href="https://instances.projectsegfau.lt/">{strings.INSTANCES}</a> <a href="https://instances.projectsegfau.lt/">{strings.INSTANCES}</a>
<a href="/minecraft">{strings.MINECRAFT}</a> <a href="/minecraft">{strings.MINECRAFT}</a>
<a href="/donate">{strings.DONATE}</a> <a href="/donate">{strings.DONATE}</a>
<a href="/faq">{strings.FAQ}</a> <a href="/faq">{strings.FAQ}</a>
<a href="/contact">{strings.CONTACT}</a> <a href="/contact">{strings.CONTACT}</a>
<a href="https://blog.projectsegfau.lt/">{strings.BLOG}</a> <a href="https://blog.projectsegfau.lt/">{strings.BLOG}</a>
</div> </div>
</nav> </nav>
<style> <style>
nav { nav {
background-color: var(--secondary); background-color: var(--secondary);
padding: 1rem; padding: 1rem;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
a.brand { a.brand {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
} }
.links > * { .links > * {
background-color: var(--tertiary); background-color: var(--tertiary);
border: none; border: none;
border-radius: 10px; border-radius: 10px;
padding: 1rem; padding: 1rem;
cursor: pointer; cursor: pointer;
color: var(--text); color: var(--text);
font-family: var(--font-primary); font-family: var(--font-primary);
text-decoration: none; text-decoration: none;
} }
.links > *:hover { .links > *:hover {
background-color: var(--accent-tertiary); background-color: var(--accent-tertiary);
text-decoration: none; text-decoration: none;
transition: all 0.5s; transition: all 0.5s;
color: var(--secondary); color: var(--secondary);
} }
.links > *:active { .links > *:active {
background-color: var(--accent-primary); background-color: var(--accent-primary);
text-decoration: none; text-decoration: none;
transition: all 0.5s; transition: all 0.5s;
color: var(--secondary); color: var(--secondary);
} }
img { img {
height: 36px; height: 36px;
border-radius: 50%; border-radius: 50%;
} }
div.links { div.links {
display: flex; display: flex;
gap: 8px; gap: 8px;
} }
@media only screen and (max-width: 820px) { @media only screen and (max-width: 820px) {
nav { nav {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
} }
div.links { div.links {
flex-direction: column; flex-direction: column;
margin-top: 10px; margin-top: 10px;
gap: 19px; gap: 19px;
} }
} }
</style> </style>

View File

@ -1,33 +1,33 @@
@font-face { @font-face {
font-family: Comfortaa; font-family: Comfortaa;
src: url("/Comfortaa.ttf"); src: url("/Comfortaa.ttf");
font-display: swap; font-display: swap;
} }
html { html {
--primary: #151515; --primary: #151515;
--secondary: #252525; --secondary: #252525;
--tertiary: #353535; --tertiary: #353535;
--accent-primary: #00d4aa; --accent-primary: #00d4aa;
--accent-secondary: #ce1717; --accent-secondary: #ce1717;
--text: #fff; --text: #fff;
--font-primary: Comfortaa; --font-primary: Comfortaa;
--accent-tertiary: #4beacb; --accent-tertiary: #4beacb;
} }
body { body {
font-family: var(--font-primary); font-family: var(--font-primary);
background-color: var(--primary); background-color: var(--primary);
color: var(--text); color: var(--text);
margin: 0; margin: 0;
} }
main { main {
padding: 1rem; padding: 1rem;
} }
a { a {
text-decoration: underline; text-decoration: underline;
color: var(--accent-primary); color: var(--accent-primary);
text-underline-offset: 5px; text-underline-offset: 5px;
} }

View File

@ -1,32 +1,31 @@
<script lang="ts"> <script lang="ts">
export let title; export let title;
export let description; export let description;
export let separator; export let separator;
import SvelteSeo from 'svelte-seo'; import SvelteSeo from "svelte-seo";
// Enjoy the jank. // Enjoy the jank.
if(title === "Project Segfault") { if (title === "Project Segfault") {
title = ""; title = "";
separator = ""; separator = "";
} } else {
else { separator = "|";
separator = "|"; }
}
</script> </script>
<SvelteSeo <SvelteSeo
openGraph={{ openGraph={{
title: title, title: title,
description: description, description: description,
type: 'website', type: "website",
images: [ images: [
{ {
url: 'https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/HBgjhWUExhKPzbpkpIqQfUkF', url: "https://projectsegfau.lt:8448/_matrix/media/r0/download/projectsegfau.lt/HBgjhWUExhKPzbpkpIqQfUkF",
width: 850, width: 850,
height: 650, height: 650,
alt: 'Image' alt: "Image"
} }
] ]
}} }}
/> />
<svelte:head> <svelte:head>

View File

@ -1,10 +1,10 @@
{ {
"PROJECT": "Project", "PROJECT": "Project",
"SEGFAULT": "Segfault", "SEGFAULT": "Segfault",
"INSTANCES": "Instances & Gameservers", "INSTANCES": "Instances & Gameservers",
"MINECRAFT": "Minecraft", "MINECRAFT": "Minecraft",
"DONATE": "Donate", "DONATE": "Donate",
"FAQ": "FAQ", "FAQ": "FAQ",
"CONTACT": "Contact", "CONTACT": "Contact",
"BLOG": "Blog" "BLOG": "Blog"
} }

View File

@ -1,11 +1,11 @@
<script> <script>
import "$lib/app.css"; import "$lib/app.css";
import Nav from "$lib/Nav.svelte"; import Nav from "$lib/Nav.svelte";
import Footer from "$lib/Footer.svelte"; import Footer from "$lib/Footer.svelte";
</script> </script>
<Nav /> <Nav />
<main> <main>
<slot /> <slot />
</main> </main>
<Footer /> <Footer />

View File

@ -4,6 +4,7 @@ description: Do you want to contact us?
--- ---
# {title} # {title}
## {description} ## {description}
# Our email # Our email
@ -20,36 +21,39 @@ description: Do you want to contact us?
<div id="Active" style="display:none"> <div id="Active" style="display:none">
<h1>People</h1> <h1>People</h1>
<div> <div>
<span>Midou:</span> <span>Midou:</span>
<a class="matrixcolored" href="https://matrix.to/#/@midou:projectsegfau.lt">[Matrix]</a> <a class="matrixcolored" href="https://matrix.to/#/@midou:projectsegfau.lt">[Matrix]</a>
</div> </div>
<div> <div>
<span>MrLeRien:</span> <span>MrLeRien:</span>
<a class="discordcolored" href="https://discord.com/users/213634643327582208">Discord</a> <a class="discordcolored" href="https://discord.com/users/213634643327582208">Discord</a>
</div> </div>
<div> <div>
<span>Odyssey:</span> <span>Odyssey:</span>
<a class="matrixcolored" href="https://matrix.to/#/@odyssey346:projectsegfau.lt">[Matrix]</a> <a class="matrixcolored" href="https://matrix.to/#/@odyssey346:projectsegfau.lt">[Matrix]</a>
<a class="discordcolored" href="https://discord.com/users/315843700490240002">Discord</a> <a class="discordcolored" href="https://discord.com/users/315843700490240002">Discord</a>
</div> </div>
<div> <div>
<span>Devnol:</span> <span>Devnol:</span>
<a class="matrixcolored" href="https://matrix.to/#/@devnol:projectsegfau.lt">[Matrix]</a> <a class="matrixcolored" href="https://matrix.to/#/@devnol:projectsegfau.lt">[Matrix]</a>
<a class="discordcolored" href="https://discordapp.com/users/429353559566319626">Discord</a> <a class="discordcolored" href="https://discordapp.com/users/429353559566319626">Discord</a>
</div> </div>
</div> </div>
<button <button
id="hide" id="hide"
type="button" type="button"
onclick='document.getElementById("Active").style.display ="block"; document.getElementById("hide").style.display = "none" ;' onclick='document.getElementById("Active").style.display ="block"; document.getElementById("hide").style.display = "none" ;'
> >
Click to show who is active on what platform Click to show who is active on what platform
</button> </button>
<style> <style>

View File

@ -2,19 +2,21 @@
title: Donate to Project Segfault title: Donate to Project Segfault
description: Our donation methods description: Our donation methods
--- ---
<script lang="ts"> <script lang="ts">
import MoneroQR from "$lib/images/Monero.png"; import MoneroQR from "$lib/images/Monero.png";
</script> </script>
# {title} # {title}
## {description} ## {description}
# please do # please do
If you donate, we will be more motivated to work on the server and host more stuff and maybe even get more hardware. I really recommend you donate any spare money you have if you enjoy or use our services on a daily basis. If you donate, we will be more motivated to work on the server and host more stuff and maybe even get more hardware. I really recommend you donate any spare money you have if you enjoy or use our services on a daily basis.
# yeah sure I'll donate. links? # yeah sure I'll donate. links?
<div class="monero"> <div class="monero">
<span>Monero: <code>47L7Qsto7XcifY3CdG18ySe5Tt83kpFLDLve9jQwbc9taPBLNGv6ZrJNUKpMG9Nj9zHgCZ4FQMSyt75e8Jvx12JFLtJyFdA</code></span> <span>Monero: <code>47L7Qsto7XcifY3CdG18ySe5Tt83kpFLDLve9jQwbc9taPBLNGv6ZrJNUKpMG9Nj9zHgCZ4FQMSyt75e8Jvx12JFLtJyFdA</code></span>
<img src={MoneroQR} alt="Monero Qr Code"> <img src={MoneroQR} alt="Monero Qr Code">

View File

@ -4,18 +4,24 @@ description: Frequently or not frequently asked questions about Project Segfault
--- ---
# {title} # {title}
## Who is the project owner? ## Who is the project owner?
Orignally: Midou (Sysadmin) and Mrlerien (Hoster), but now Odyssey346 (Game Server Sysadmin, webdev and social media manager) and Devnol (Hoster) are with us. Orignally: Midou (Sysadmin) and Mrlerien (Hoster), but now Odyssey346 (Game Server Sysadmin, webdev and social media manager) and Devnol (Hoster) are with us.
# Hold on, what if Devnol decides to backstab you? # Hold on, what if Devnol decides to backstab you?
I highly doubt he will, but in any case this happens, critical services will stay up. So only extra (non important services) running on the server will be gone, but you should be aware of that anyways. I highly doubt he will, but in any case this happens, critical services will stay up. So only extra (non important services) running on the server will be gone, but you should be aware of that anyways.
# One of your services contains toxic people! # One of your services contains toxic people!
You can contact us by mail or Matrix and we can figure this out with you. But we recommend that you put most of these requests in our support channel at [#support:projectsegfau.lt](https://matrix.to/#/#support:projectsegfau.lt) on Matrix. You can contact us by mail or Matrix and we can figure this out with you. But we recommend that you put most of these requests in our support channel at [#support:projectsegfau.lt](https://matrix.to/#/#support:projectsegfau.lt) on Matrix.
If it's something personal, just say that you have a report against someone on one of our services and you'd like to be contacted by an admin and we'll constact you ASAP. We have no lives so we're quite active. If it's something personal, just say that you have a report against someone on one of our services and you'd like to be contacted by an admin and we'll constact you ASAP. We have no lives so we're quite active.
# How can I trust your services? # How can I trust your services?
Well, you really can't. We don't make our logs or anything public, however, if you would like the data we have on you, please contact us. If you're paranoid, **you are allowed to use Tor on our services**, but we don't host any .onion links. Well, you really can't. We don't make our logs or anything public, however, if you would like the data we have on you, please contact us. If you're paranoid, **you are allowed to use Tor on our services**, but we don't host any .onion links.
# Which ways do you prefer to communicate? # Which ways do you prefer to communicate?
Look at <a href="/contact">Contact</a>. Look at <a href="/contact">Contact</a>.

View File

@ -8,7 +8,9 @@ description: 4 idiots, a Sun server and a Hitachi Compute Rack.
## {description} ## {description}
# what # what
We are 4 teenagers who have a decently powerful server. What do we do with this server? Host game servers and random assortment of privacy respecting tools like Invidious, Nextcloud, Matrix etc.... and maybe some original works. You'll see eventually! We are 4 teenagers who have a decently powerful server. What do we do with this server? Host game servers and random assortment of privacy respecting tools like Invidious, Nextcloud, Matrix etc.... and maybe some original works. You'll see eventually!
# Tell me more! What do you guys host? Where can I contact you? Can you fix my daughter's iPad? # Tell me more! What do you guys host? Where can I contact you? Can you fix my daughter's iPad?
We can't fix your daughter's iPad, but there is a navigation bar at the top of the page with links to websites that explain things about us, or contain useful information about us. We can't fix your daughter's iPad, but there is a navigation bar at the top of the page with links to websites that explain things about us, or contain useful information about us.

View File

@ -1,14 +1,17 @@
--- ---
title: Project Segfault MC title: Project Segfault MC
--- ---
# {title} # {title}
# [Click me to go back to the Minecraft site](/minecraft) # [Click me to go back to the Minecraft site](/minecraft)
## Recommended mods list ## Recommended mods list
These are picked by our community or are for server features like voice chatting. These are picked by our community or are for server features like voice chatting.
If you play on Bedrock, try to find an alternative to these. Mods like Simple Voice Chat have no alternative on Bedrock, sorry. If you play on Bedrock, try to find an alternative to these. Mods like Simple Voice Chat have no alternative on Bedrock, sorry.
- [Xaero's World Map](https://www.curseforge.com/minecraft/mc-mods/xaeros-world-map) & [Xaero's Minimap](https://www.curseforge.com/minecraft/mc-mods/xaeros-minimap)
- Any optimization mod (We recommend at least Sodium) - [Xaero's World Map](https://www.curseforge.com/minecraft/mc-mods/xaeros-world-map) & [Xaero's Minimap](https://www.curseforge.com/minecraft/mc-mods/xaeros-minimap)
- [Simple Voice Chat](https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat) - Any optimization mod (We recommend at least Sodium)
- [Simple Voice Chat](https://www.curseforge.com/minecraft/mc-mods/simple-voice-chat)

View File

@ -6,26 +6,30 @@ description: Yeah, we have a Minecraft server.
# {title} # {title}
# {description} # {description}
We have an invite-only SMP server running on our network on version 1.18* (1.18, 1.18.1, 1.18.2) which is also bridged to Bedrock using GeyserMC.
We have an invite-only SMP server running on our network on version 1.18\* (1.18, 1.18.1, 1.18.2) which is also bridged to Bedrock using GeyserMC.
If you would like to join, please [join our Discord](https://discord.gg/26EG7fFtfS) and ask us there to be whitelisted. If you would like to join, please [join our Discord](https://discord.gg/26EG7fFtfS) and ask us there to be whitelisted.
## Rules ## Rules
1. Do not modify buildings without permission. 1. Do not modify buildings without permission.
2. Do not bypass protections. (mining around a protected door, bypassing chest locks etc) 2. Do not bypass protections. (mining around a protected door, bypassing chest locks etc)
3. Do not cheat 3. Do not cheat
4. Do not lag the shit out of the server. 4. Do not lag the shit out of the server.
## IP ## IP
**Java**: mc.projectsegfau.lt:25565 **Java**: mc.projectsegfau.lt:25565
**Bedrock** mc.projectsegfau.lt:19132 **Bedrock** mc.projectsegfau.lt:19132
*psst, you can join bedrock on your switch using the app we've linked below!* _psst, you can join bedrock on your switch using the app we've linked below!_
*another psst, if you play on both Java and Bedrock, [link your accounts together on GeyserMC's website!](https://link.geysermc.org)* Your accounts will be linked together meaning you will have the exact same experience. _another psst, if you play on both Java and Bedrock, [link your accounts together on GeyserMC's website!](https://link.geysermc.org)_ Your accounts will be linked together meaning you will have the exact same experience.
## Links ## Links
[Dynmap](https://map.mc.projectsegfau.lt) [Dynmap](https://map.mc.projectsegfau.lt)
[MC Server Connector for iOS](https://apps.apple.com/us/app/mc-server-connector/id1548251304) [MC Server Connector for iOS](https://apps.apple.com/us/app/mc-server-connector/id1548251304)
@ -33,20 +37,23 @@ If you would like to join, please [join our Discord](https://discord.gg/26EG7fFt
[MC Server Connector for Android](https://play.google.com/store/apps/details?id=com.smokiem.mcserverconnector&hl=no&gl=US) [MC Server Connector for Android](https://play.google.com/store/apps/details?id=com.smokiem.mcserverconnector&hl=no&gl=US)
## Recommended Client-Side Mods ## Recommended Client-Side Mods
[Click me for a list of recommended client-side mods](/minecraft/client-side-mods) [Click me for a list of recommended client-side mods](/minecraft/client-side-mods)
## Plugin list ## Plugin list
This is a manually made list of our plugins, so it might not be up to date. This is a manually made list of our plugins, so it might not be up to date.
- BlockLocker
- CoreProtect - BlockLocker
- [Dynmap](https://map.mc.projectsegfau.lt) - CoreProtect
- EssentialsX (EssentialsXDiscord, EssentialsXGeoIP) - [Dynmap](https://map.mc.projectsegfau.lt)
- Geyser & Floodgate - EssentialsX (EssentialsXDiscord, EssentialsXGeoIP)
- LuckPerms - Geyser & Floodgate
- mcMMO (manually built! fuck buying things. [Click here to download our build](https://downloads.projectsegfau.lt)) - LuckPerms
- TabTPS - mcMMO (manually built! fuck buying things. [Click here to download our build](https://downloads.projectsegfau.lt))
- Vault - TabTPS
- ViaVersion (You may only connect from a base version and its subversions (1.18, 1.18.1, 1.18.2). You cannot connect from a major version older than the major version the server is running.) - Vault
- PlugMan - ViaVersion (You may only connect from a base version and its subversions (1.18, 1.18.1, 1.18.2). You cannot connect from a major version older than the major version the server is running.)
- CombatLogX - PlugMan
- Simple Voice Mod - CombatLogX
- Simple Voice Mod

View File

@ -1,6 +1,6 @@
import adapter from '@sveltejs/adapter-static'; import adapter from "@sveltejs/adapter-static";
import preprocess from 'svelte-preprocess'; import preprocess from "svelte-preprocess";
import icons from 'unplugin-icons/vite' import icons from "unplugin-icons/vite";
import { mdsvex } from "mdsvex"; import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
@ -23,10 +23,13 @@ const config = {
vite: { vite: {
plugins: [ plugins: [
icons({ icons({
compiler: 'svelte', compiler: "svelte"
}), })
], ]
}, },
prerender: {
default: true
}
} }
}; };