Fix some SvelteKit errors and add docker compose file for Redis
This commit is contained in:
parent
89d5f5cc23
commit
30646ebca2
|
|
@ -1,3 +1,4 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
assets/release.zip
|
assets/release.zip
|
||||||
assets/hash.txt
|
assets/hash.txt
|
||||||
|
data/
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
# Config file for compose, a tool that allows for easily managing multiple docker containers.
|
||||||
|
# https://docs.docker.com/compose/
|
||||||
|
|
||||||
|
services:
|
||||||
|
redis:
|
||||||
|
container_name: meteoredis
|
||||||
|
image: redis
|
||||||
|
ports:
|
||||||
|
- 6379:6379
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./data/redis:/data
|
||||||
|
|
@ -27,7 +27,7 @@ require("dotenv").config()
|
||||||
const https = require("https")
|
const https = require("https")
|
||||||
const PROD = process.env.PROD
|
const PROD = process.env.PROD
|
||||||
const client = require("prom-client")
|
const client = require("prom-client")
|
||||||
const { handler } = await import("../meteoriterewrite/build/handler.js")
|
const { handler } = await import("../Front/build/handler.js")
|
||||||
|
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
const allowedOrigins = [
|
const allowedOrigins = [
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
<script lang="ts">
|
|
||||||
export let jwt: string
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
<h2 class="">Admin Logs</h2>
|
<h2 class="">Admin Logs</h2>
|
||||||
<table
|
<table
|
||||||
|
|
|
||||||
|
|
@ -100,8 +100,7 @@
|
||||||
<h5>Moderator Note:</h5>
|
<h5>Moderator Note:</h5>
|
||||||
<textarea
|
<textarea
|
||||||
bind:value={banreason}
|
bind:value={banreason}
|
||||||
class="input input-bordered input-primary w-full rounded-md h-32">
|
class="input input-bordered input-primary w-full rounded-md h-32" />
|
||||||
</textarea>
|
|
||||||
<div
|
<div
|
||||||
class="!text-xs mt-6 {message.error === true
|
class="!text-xs mt-6 {message.error === true
|
||||||
? 'text-error-600'
|
? 'text-error-600'
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,7 @@
|
||||||
<textarea
|
<textarea
|
||||||
bind:value={itemdesc}
|
bind:value={itemdesc}
|
||||||
class="input input-bordered input-primary w-full max-w-md rounded-md"
|
class="input input-bordered input-primary w-full max-w-md rounded-md"
|
||||||
required>
|
required />
|
||||||
</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="input-label gap-8">
|
<label class="input-label gap-8">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let itemname: string
|
export let itemname: string
|
||||||
export let itemid: string
|
export let itemid: string
|
||||||
export let type = ""
|
export const type = ""
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-row gap-4 justify-around w-full">
|
<div class="flex flex-row gap-4 justify-around w-full">
|
||||||
|
|
|
||||||
|
|
@ -104,8 +104,7 @@
|
||||||
<textarea
|
<textarea
|
||||||
bind:value={itemdesc}
|
bind:value={itemdesc}
|
||||||
class="input input-bordered input-primary w-full max-w-md rounded-md"
|
class="input input-bordered input-primary w-full max-w-md rounded-md"
|
||||||
required>
|
required />
|
||||||
</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="input-label gap-14">
|
<label class="input-label gap-14">
|
||||||
|
|
|
||||||
|
|
@ -138,8 +138,7 @@
|
||||||
<textarea
|
<textarea
|
||||||
bind:value={description}
|
bind:value={description}
|
||||||
class="input input-bordered input-primary w-full rounded-md"
|
class="input input-bordered input-primary w-full rounded-md"
|
||||||
required>
|
required />
|
||||||
</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
<!-- svelte-ignore a11y-label-has-associated-control -->
|
<!-- svelte-ignore a11y-label-has-associated-control -->
|
||||||
<label class="label">
|
<label class="label">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Avatar } from "@skeletonlabs/skeleton"
|
import { Avatar } from "@skeletonlabs/skeleton"
|
||||||
export let selectedgroup: string
|
|
||||||
export let grouplist: array
|
export let grouplist: array
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
export let size: string
|
export let size: string
|
||||||
export let status = "Offline"
|
export let status = "Offline"
|
||||||
export let userid = "0"
|
export const userid = "0"
|
||||||
export let gameid = "0"
|
export let gameid = "0"
|
||||||
export let offline = false
|
export let offline = false
|
||||||
export let customclass = ""
|
export let customclass = ""
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
description,
|
description,
|
||||||
price,
|
price,
|
||||||
}),
|
}),
|
||||||
},
|
}
|
||||||
)
|
)
|
||||||
const saveJson = await save.json()
|
const saveJson = await save.json()
|
||||||
if (!saveJson.error) {
|
if (!saveJson.error) {
|
||||||
|
|
@ -93,8 +93,7 @@
|
||||||
<span>Description</span>
|
<span>Description</span>
|
||||||
<textarea
|
<textarea
|
||||||
bind:value={description}
|
bind:value={description}
|
||||||
class="input input-bordered input-primary w-full rounded-md">
|
class="input input-bordered input-primary w-full rounded-md" />
|
||||||
</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -228,6 +228,9 @@
|
||||||
on:mouseover={() => {
|
on:mouseover={() => {
|
||||||
likefill = "lime"
|
likefill = "lime"
|
||||||
}}
|
}}
|
||||||
|
on:focus={() => {
|
||||||
|
likefill = "lime"
|
||||||
|
}}
|
||||||
on:mouseleave={() => {
|
on:mouseleave={() => {
|
||||||
likefill = "none"
|
likefill = "none"
|
||||||
}}
|
}}
|
||||||
|
|
@ -254,6 +257,9 @@
|
||||||
on:mouseover={() => {
|
on:mouseover={() => {
|
||||||
dislikefill = "red"
|
dislikefill = "red"
|
||||||
}}
|
}}
|
||||||
|
on:focus={() => {
|
||||||
|
dislikefill = "red"
|
||||||
|
}}
|
||||||
on:mouseleave={() => {
|
on:mouseleave={() => {
|
||||||
dislikefill = "none"
|
dislikefill = "none"
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,7 @@
|
||||||
maxlength={500}
|
maxlength={500}
|
||||||
class="input input-bordered input-primary w-full h-64 rounded-md"
|
class="input input-bordered input-primary w-full h-64 rounded-md"
|
||||||
placeholder="Description"
|
placeholder="Description"
|
||||||
required>
|
required />
|
||||||
</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
|
|
|
||||||
|
|
@ -79,8 +79,7 @@
|
||||||
maxlength={500}
|
maxlength={500}
|
||||||
class="input input-bordered input-primary w-full h-64 rounded-md"
|
class="input input-bordered input-primary w-full h-64 rounded-md"
|
||||||
placeholder="Description"
|
placeholder="Description"
|
||||||
required>
|
required />
|
||||||
</textarea>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
|
|
|
||||||
|
|
@ -205,11 +205,9 @@
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
class="feather feather-edit shrink">
|
class="feather feather-edit shrink">
|
||||||
<path
|
<path
|
||||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
|
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
||||||
</path>
|
|
||||||
<path
|
<path
|
||||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
|
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
||||||
</path>
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -221,6 +219,7 @@
|
||||||
|
|
||||||
<svg
|
<svg
|
||||||
on:click={passwordchange}
|
on:click={passwordchange}
|
||||||
|
on:keypress={passwordchange}
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
width="16"
|
width="16"
|
||||||
height="16"
|
height="16"
|
||||||
|
|
@ -232,11 +231,9 @@
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
class="feather feather-edit shrink">
|
class="feather feather-edit shrink">
|
||||||
<path
|
<path
|
||||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
|
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
||||||
</path>
|
|
||||||
<path
|
<path
|
||||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
|
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
||||||
</path>
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -272,11 +269,9 @@
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
class="feather feather-edit shrink">
|
class="feather feather-edit shrink">
|
||||||
<path
|
<path
|
||||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
|
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
||||||
</path>
|
|
||||||
<path
|
<path
|
||||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
|
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
||||||
</path>
|
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
@ -308,8 +303,7 @@
|
||||||
maxlength={5000}
|
maxlength={5000}
|
||||||
placeholder={"Custom CSS"}
|
placeholder={"Custom CSS"}
|
||||||
class="input h-64 input-bordered input-primary rounded-md grow"
|
class="input h-64 input-bordered input-primary rounded-md grow"
|
||||||
required>
|
required />
|
||||||
</textarea>
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
on:click={csschange}
|
on:click={csschange}
|
||||||
|
|
@ -342,8 +336,9 @@
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SlideToggle active="bg-success-600" bind:checked={_2faenabled}
|
<SlideToggle
|
||||||
></SlideToggle>
|
active="bg-success-600"
|
||||||
|
bind:checked={_2faenabled} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue