forked from ProjectSegfault/website
commit message
This commit is contained in:
commit
2ff2895efd
20
.eslintrc.cjs
Normal file
20
.eslintrc.cjs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
||||||
|
plugins: ['svelte3', '@typescript-eslint'],
|
||||||
|
ignorePatterns: ['*.cjs'],
|
||||||
|
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
|
||||||
|
settings: {
|
||||||
|
'svelte3/typescript': () => require('typescript')
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: 'module',
|
||||||
|
ecmaVersion: 2020
|
||||||
|
},
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
es2017: true,
|
||||||
|
node: true
|
||||||
|
}
|
||||||
|
};
|
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
/build
|
||||||
|
/.svelte-kit
|
||||||
|
/package
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
40
README.md
Normal file
40
README.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# create-svelte
|
||||||
|
|
||||||
|
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
|
||||||
|
|
||||||
|
## Creating a project
|
||||||
|
|
||||||
|
If you're seeing this, you've probably already done this step. Congrats!
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# create a new project in the current directory
|
||||||
|
npm init svelte@next
|
||||||
|
|
||||||
|
# create a new project in my-app
|
||||||
|
npm init svelte@next my-app
|
||||||
|
```
|
||||||
|
|
||||||
|
> Note: the `@next` is temporary
|
||||||
|
|
||||||
|
## Developing
|
||||||
|
|
||||||
|
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
|
||||||
|
# or start the server and open the app in a new browser tab
|
||||||
|
npm run dev -- --open
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
To create a production version of your app:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
You can preview the production build with `npm run preview`.
|
||||||
|
|
||||||
|
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
14
mdsvex.config.js
Normal file
14
mdsvex.config.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import { defineMDSveXConfig as defineConfig } from "mdsvex";
|
||||||
|
|
||||||
|
const config = defineConfig({
|
||||||
|
extensions: [".svelte.md", ".md", ".svx"],
|
||||||
|
|
||||||
|
smartypants: {
|
||||||
|
dashes: "oldschool",
|
||||||
|
},
|
||||||
|
|
||||||
|
remarkPlugins: [],
|
||||||
|
rehypePlugins: [],
|
||||||
|
});
|
||||||
|
|
||||||
|
export default config;
|
28
package.json
Normal file
28
package.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "mcserverwebsite",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "svelte-kit dev",
|
||||||
|
"build": "svelte-kit build",
|
||||||
|
"package": "svelte-kit package",
|
||||||
|
"preview": "svelte-kit preview",
|
||||||
|
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||||
|
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
|
"lint": "eslint --ignore-path .gitignore ."
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@sveltejs/adapter-auto": "next",
|
||||||
|
"@sveltejs/kit": "next",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
||||||
|
"@typescript-eslint/parser": "^5.10.1",
|
||||||
|
"eslint": "^7.32.0",
|
||||||
|
"eslint-plugin-svelte3": "^3.2.1",
|
||||||
|
"svelte": "^3.44.0",
|
||||||
|
"svelte-check": "^2.2.6",
|
||||||
|
"svelte-preprocess": "^4.10.1",
|
||||||
|
"tslib": "^2.3.1",
|
||||||
|
"typescript": "~4.5.4",
|
||||||
|
"mdsvex": "^0.10.5"
|
||||||
|
},
|
||||||
|
"type": "module"
|
||||||
|
}
|
13
src/app.d.ts
vendored
Normal file
13
src/app.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/// <reference types="@sveltejs/kit" />
|
||||||
|
|
||||||
|
// See https://kit.svelte.dev/docs/typescript
|
||||||
|
// for information about these interfaces
|
||||||
|
declare namespace App {
|
||||||
|
interface Locals {}
|
||||||
|
|
||||||
|
interface Platform {}
|
||||||
|
|
||||||
|
interface Session {}
|
||||||
|
|
||||||
|
interface Stuff {}
|
||||||
|
}
|
13
src/app.html
Normal file
13
src/app.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="description" content="" />
|
||||||
|
<link rel="icon" href="%svelte.assets%/favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
%svelte.head%
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>%svelte.body%</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
46
src/assets/global.css
Normal file
46
src/assets/global.css
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Comfortaa&family=Quicksand:wght@500&display=swap');
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #101010;
|
||||||
|
color: white;
|
||||||
|
font-family: 'Comfortaa', sans-serif
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #ce1818;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
a.hover {
|
||||||
|
color: rgb(233, 110, 110);
|
||||||
|
}
|
||||||
|
a.visited {
|
||||||
|
color: #5f1919;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card > div {
|
||||||
|
word-wrap: break-word;
|
||||||
|
margin: 50px;
|
||||||
|
padding: 20px;
|
||||||
|
border-radius: 25px;
|
||||||
|
background-color: #252525;
|
||||||
|
box-shadow: 0 0 5px 5px #252525;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gameserversCardTitle, .centreofattention {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordwrappedlongthingaaa {
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 800px) {
|
||||||
|
.card {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
16
src/lib/Header.svelte
Normal file
16
src/lib/Header.svelte
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<header>
|
||||||
|
<a href="/" style="color: #3DB686">MutaTechTips</a>
|
||||||
|
|
|
||||||
|
<a href="/gameservers">Games</a>
|
||||||
|
|
|
||||||
|
<a href="/donate">Donate</a>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
header {
|
||||||
|
background-color: #252525;
|
||||||
|
border: solid #252525;
|
||||||
|
border-width: 1em;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
</style>
|
19
src/routes/__layout.svelte
Normal file
19
src/routes/__layout.svelte
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import Header from "$lib/Header.svelte"
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<title>MutaTechTips</title>
|
||||||
|
|
||||||
|
<Header />
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<slot></slot>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:global(root) {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #505050;
|
||||||
|
}
|
||||||
|
</style>
|
17
src/routes/donate.md
Normal file
17
src/routes/donate.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
title: Donate to MutaTechTips
|
||||||
|
---
|
||||||
|
# {title}
|
||||||
|
## Our donation methods
|
||||||
|
|
||||||
|
# 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 enjoyed our services, like if you had so much fun on our Garry's Mod server (cause I've had a lot of fun there)
|
||||||
|
|
||||||
|
# yeah sure I'll donate. links?
|
||||||
|
LiberaPay: <a href="https://liberapay.com/Midou/donate"><img alt="Donate using Liberapay" style="height: 1.5em;" src="https://liberapay.com/assets/widgets/donate.svg"></a>
|
||||||
|
|
||||||
|
Monero: <span id="wordwrappedlongthingaaa">47L7Qsto7XcifY3CdG18ySe5Tt83kpFLDLve9jQwbc9taPBLNGv6ZrJNUKpMG9Nj9zHgCZ4FQMSyt75e8Jvx12JFLtJyFdA</span>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import "../assets/global.css"
|
||||||
|
</script>
|
52
src/routes/gameservers.md
Normal file
52
src/routes/gameservers.md
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
title: Our Gameservers
|
||||||
|
---
|
||||||
|
# {title}
|
||||||
|
## The places to release good chemicals in your brain
|
||||||
|
|
||||||
|
<div class="centreofattention">
|
||||||
|
Please use common sense when playing on our servers. (<a href="https://www.google.com/search?q=i%27m%20stupid%20and%20i%20dont%20know%20what%20common%20sense%20is%20so%20i%20have%20to%20google%20it" target="_blank">What is common sense?</a>)
|
||||||
|
<br>
|
||||||
|
<a href="https://discord.gg/26EG7fFtfS" style="color: #5865F2">Our Discord server</a>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<div id="gmod">
|
||||||
|
<h3 class="gameserversCardTitle"> Garry's Mod </h3>
|
||||||
|
<a href="https://gmod.mutahar.rocks">Garry's Mod has it's own website. Check it out here!</a>
|
||||||
|
<br>
|
||||||
|
<a href="steam://connect/gmodsrv.mutahar.rocks">Connect to the server using this link</a>
|
||||||
|
<a href="https://www.gametracker.com/server_info/176.174.120.242:27015/">GameTracker Link</a>
|
||||||
|
</div>
|
||||||
|
<div id="hl2dm">
|
||||||
|
<h3 class="gameserversCardTitle"> Half-Life 2 Deathmatch </h3>
|
||||||
|
<b>Server name in browser list: MutaToiletTips</b>
|
||||||
|
<br>
|
||||||
|
Almost pure vanilla hl2dm server where you can have lots of fun chucking toilets at people
|
||||||
|
<br>
|
||||||
|
<a href="steam://connect/176.174.120.242:27017">Connect to the server using this link</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://www.gametracker.com/server_info/176.174.120.242:27017/">GameTracker Link</a>
|
||||||
|
</div>
|
||||||
|
<div id="ricochet">
|
||||||
|
<h3 class="gameserversCardTitle"> Ricochet </h3>
|
||||||
|
<b>Server name in browser list: MutaRicochetTips</b>
|
||||||
|
<br>
|
||||||
|
Our mission is to become the #1 Ricochet server in the world. It probably already is.
|
||||||
|
<br>
|
||||||
|
<a href="steam://connect/176.174.120.242:27016">Connect to the server using this link</a>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
<div id="hldm">
|
||||||
|
<h3 class="gameserversCardTitle"> Half-Life: Deathmatch </h3>
|
||||||
|
<b>Server name in browser list: MutaCascadeTips</b>
|
||||||
|
<br>
|
||||||
|
Fun, casual Half-Life: Deathmatch. Perfect for when you dig out that old computer you found in your attic.
|
||||||
|
<br>
|
||||||
|
<a href="steam://connect/176.174.120.242:27018">Connect to the server using this link</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://www.gametracker.com/server_info/176.174.120.242:27018/">GameTracker Link</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script lang="ts">
|
||||||
|
import "../assets/global.css"
|
||||||
|
</script>
|
15
src/routes/index.md
Normal file
15
src/routes/index.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: MutaTechTips
|
||||||
|
---
|
||||||
|
# {title}
|
||||||
|
## 3 idiots with an insanely good server.
|
||||||
|
|
||||||
|
# what
|
||||||
|
We are 3 teenagers who have a powerful server. What do we do with this server? Host game servers and random assortment of privacy respecting tools like Invidious, Nextcloud, Matrix etc....
|
||||||
|
|
||||||
|
# shut up nerd, I want to play games. Give me your ips!!!!
|
||||||
|
There should be a navbar on the top.
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import "../assets/global.css"
|
||||||
|
</script>
|
55
src/routes/rules.md
Normal file
55
src/routes/rules.md
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
---
|
||||||
|
title: Our Rules
|
||||||
|
---
|
||||||
|
# {title}
|
||||||
|
## Follow these or you're dumb
|
||||||
|
|
||||||
|
### Section 1 - General
|
||||||
|
1. Do not destroy other's bases.
|
||||||
|
2. Do not harass other users.
|
||||||
|
3. Do not use anything that could put others at a disadvantage (xray, cheats, exploits like duping etc)
|
||||||
|
4. You are not allowed to automate processes like fishing while you're away from your keyboard (you are allowed to do something else while you're fishing though, like be on your phone, but you must fish manually without the use of any software.)
|
||||||
|
5. Do not kill people for no reason. If you hit someone, then they are allowed to fight back, even if it was an accident.
|
||||||
|
|
||||||
|
### Section 2 - Island/Area Claims
|
||||||
|
#### You can claim islands for yourself. Here's the rules for that though:
|
||||||
|
1. You can't claim islands the size of fucking Russia.
|
||||||
|
2. You may only have max 8 islands, but if they're all massive, your max is 3.
|
||||||
|
3. Your islands must be visible on dynmap (use a sign with [dynmap] on the start)
|
||||||
|
4. An island owner may kill anyone on sight.
|
||||||
|
|
||||||
|
### Section 3 - Trading
|
||||||
|
1. If someone is in the process of trading, you cannot be near them (be at least 5 blocks apart).
|
||||||
|
2. If you picked up an item that was being traded, give it back. If you do not give it back in at least 10 seconds, the people who trading are allowed to kill you.
|
||||||
|
3. Do not deal damage to anyone who is trading.
|
||||||
|
4. If you're trading, please advertise it in the chat.
|
||||||
|
|
||||||
|
### Section 4 - Wars
|
||||||
|
1. You are allowed to start wars against alliances and people for reasons like stealing your things, destroying your stuff, and killing your dog (Oh also by the way if you kill a dog the owner is allowed to go John Wick on you)
|
||||||
|
2. Alliances are allowed to start wars against other alliances without needing a reason.
|
||||||
|
3. Do not log out during combat.
|
||||||
|
4. Do not attempt to trap people who have logged out during a war. They could have disconnected for multiple reasons, it's not always because they don't want to fight.
|
||||||
|
5. You may not start wars or raid a base owned by someone who is offline.
|
||||||
|
6. You are allowed to bypass the max claims limit in case you want to set up a temporary claimed area for basing during a war.
|
||||||
|
### Section 5 - Alliances
|
||||||
|
1. Alliances are allowed to have one island only. (Except in special cases, please negotiate with an admin about this if you feel like you need two)
|
||||||
|
2. Alliances must be clearly advertised. (I'll try to make something in for this)
|
||||||
|
3. Alliances are allowed to go at war, but this must be for a reasonable reason (Not something petty like someone going on your island)
|
||||||
|
4. Alliances can go against other alliances for any reason though.
|
||||||
|
|
||||||
|
### Section 6 - Griefing
|
||||||
|
1. Do not destroy villages for no reason.
|
||||||
|
2. Do not destroy other's crops. If you accidentally step on one, please replant. If you can't, please say so in the chat.
|
||||||
|
3. Do not make massive useless buildings unless it's on your island/claimed area. Things like lavacasts are only permitted on your areas.
|
||||||
|
4. Do not burn or explode public buildings. This is very unacceptable.
|
||||||
|
|
||||||
|
### Section 7 - Traps
|
||||||
|
1. Do not trap nether portals. This means don't place obisidan or any other blocks that could trap people inside your nether portal.
|
||||||
|
2. Don't be into traps - what the fuck that's kinda gay pal
|
||||||
|
|
||||||
|
### Section 8 - Bases
|
||||||
|
1. Do not attempt to bypass base protection like [Private] signs on doors.
|
||||||
|
2. You are not allowed to destroy bases. I mean, it would be fun, but like, it probably took them lots of time.
|
||||||
|
<script lang="ts">
|
||||||
|
import "../assets/global.css"
|
||||||
|
</script>
|
BIN
static/favicon.png
Normal file
BIN
static/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
19
svelte.config.js
Normal file
19
svelte.config.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { mdsvex } from "mdsvex";
|
||||||
|
import mdsvexConfig from "./mdsvex.config.js";
|
||||||
|
import adapter from "@sveltejs/adapter-auto";
|
||||||
|
import preprocess from "svelte-preprocess";
|
||||||
|
|
||||||
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
|
const config = {
|
||||||
|
extensions: [".svelte", ...mdsvexConfig.extensions],
|
||||||
|
|
||||||
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||||
|
// for more information about preprocessors
|
||||||
|
preprocess: [preprocess(), mdsvex(mdsvexConfig)],
|
||||||
|
|
||||||
|
kit: {
|
||||||
|
adapter: adapter(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
36
tsconfig.json
Normal file
36
tsconfig.json
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"module": "es2020",
|
||||||
|
"lib": ["es2020", "DOM"],
|
||||||
|
"target": "es2020",
|
||||||
|
/**
|
||||||
|
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
||||||
|
to enforce using \`import type\` instead of \`import\` for Types.
|
||||||
|
*/
|
||||||
|
"importsNotUsedAsValues": "error",
|
||||||
|
/**
|
||||||
|
TypeScript doesn't know about import usages in the template because it only sees the
|
||||||
|
script of a Svelte file. Therefore preserve all value imports. Requires TS 4.5 or higher.
|
||||||
|
*/
|
||||||
|
"preserveValueImports": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
/**
|
||||||
|
To have warnings/errors of the Svelte compiler at the correct position,
|
||||||
|
enable source maps by default.
|
||||||
|
*/
|
||||||
|
"sourceMap": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"baseUrl": ".",
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
|
"paths": {
|
||||||
|
"$lib": ["src/lib"],
|
||||||
|
"$lib/*": ["src/lib/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user