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/
|
||||
assets/release.zip
|
||||
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 PROD = process.env.PROD
|
||||
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) => {
|
||||
const allowedOrigins = [
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
<script lang="ts">
|
||||
export let jwt: string
|
||||
</script>
|
||||
|
||||
<div class="grow">
|
||||
<h2 class="">Admin Logs</h2>
|
||||
<table
|
||||
|
|
|
|||
|
|
@ -100,8 +100,7 @@
|
|||
<h5>Moderator Note:</h5>
|
||||
<textarea
|
||||
bind:value={banreason}
|
||||
class="input input-bordered input-primary w-full rounded-md h-32">
|
||||
</textarea>
|
||||
class="input input-bordered input-primary w-full rounded-md h-32" />
|
||||
<div
|
||||
class="!text-xs mt-6 {message.error === true
|
||||
? 'text-error-600'
|
||||
|
|
|
|||
|
|
@ -105,8 +105,7 @@
|
|||
<textarea
|
||||
bind:value={itemdesc}
|
||||
class="input input-bordered input-primary w-full max-w-md rounded-md"
|
||||
required>
|
||||
</textarea>
|
||||
required />
|
||||
</label>
|
||||
|
||||
<label class="input-label gap-8">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script lang="ts">
|
||||
export let itemname: string
|
||||
export let itemid: string
|
||||
export let type = ""
|
||||
export const type = ""
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row gap-4 justify-around w-full">
|
||||
|
|
|
|||
|
|
@ -104,8 +104,7 @@
|
|||
<textarea
|
||||
bind:value={itemdesc}
|
||||
class="input input-bordered input-primary w-full max-w-md rounded-md"
|
||||
required>
|
||||
</textarea>
|
||||
required />
|
||||
</label>
|
||||
|
||||
<label class="input-label gap-14">
|
||||
|
|
|
|||
|
|
@ -138,8 +138,7 @@
|
|||
<textarea
|
||||
bind:value={description}
|
||||
class="input input-bordered input-primary w-full rounded-md"
|
||||
required>
|
||||
</textarea>
|
||||
required />
|
||||
</label>
|
||||
<!-- svelte-ignore a11y-label-has-associated-control -->
|
||||
<label class="label">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { Avatar } from "@skeletonlabs/skeleton"
|
||||
export let selectedgroup: string
|
||||
export let grouplist: array
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
export let size: string
|
||||
export let status = "Offline"
|
||||
export let userid = "0"
|
||||
export const userid = "0"
|
||||
export let gameid = "0"
|
||||
export let offline = false
|
||||
export let customclass = ""
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
description,
|
||||
price,
|
||||
}),
|
||||
},
|
||||
}
|
||||
)
|
||||
const saveJson = await save.json()
|
||||
if (!saveJson.error) {
|
||||
|
|
@ -93,8 +93,7 @@
|
|||
<span>Description</span>
|
||||
<textarea
|
||||
bind:value={description}
|
||||
class="input input-bordered input-primary w-full rounded-md">
|
||||
</textarea>
|
||||
class="input input-bordered input-primary w-full rounded-md" />
|
||||
</label>
|
||||
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -228,6 +228,9 @@
|
|||
on:mouseover={() => {
|
||||
likefill = "lime"
|
||||
}}
|
||||
on:focus={() => {
|
||||
likefill = "lime"
|
||||
}}
|
||||
on:mouseleave={() => {
|
||||
likefill = "none"
|
||||
}}
|
||||
|
|
@ -254,6 +257,9 @@
|
|||
on:mouseover={() => {
|
||||
dislikefill = "red"
|
||||
}}
|
||||
on:focus={() => {
|
||||
dislikefill = "red"
|
||||
}}
|
||||
on:mouseleave={() => {
|
||||
dislikefill = "none"
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -79,8 +79,7 @@
|
|||
maxlength={500}
|
||||
class="input input-bordered input-primary w-full h-64 rounded-md"
|
||||
placeholder="Description"
|
||||
required>
|
||||
</textarea>
|
||||
required />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
|
|
|
|||
|
|
@ -79,8 +79,7 @@
|
|||
maxlength={500}
|
||||
class="input input-bordered input-primary w-full h-64 rounded-md"
|
||||
placeholder="Description"
|
||||
required>
|
||||
</textarea>
|
||||
required />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
|
|
|
|||
|
|
@ -205,11 +205,9 @@
|
|||
stroke-linejoin="round"
|
||||
class="feather feather-edit shrink">
|
||||
<path
|
||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
|
||||
</path>
|
||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
||||
<path
|
||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
|
||||
</path>
|
||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
|
@ -221,6 +219,7 @@
|
|||
|
||||
<svg
|
||||
on:click={passwordchange}
|
||||
on:keypress={passwordchange}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
|
|
@ -232,11 +231,9 @@
|
|||
stroke-linejoin="round"
|
||||
class="feather feather-edit shrink">
|
||||
<path
|
||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
|
||||
</path>
|
||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
||||
<path
|
||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
|
||||
</path>
|
||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
|
@ -272,11 +269,9 @@
|
|||
stroke-linejoin="round"
|
||||
class="feather feather-edit shrink">
|
||||
<path
|
||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
|
||||
</path>
|
||||
d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
|
||||
<path
|
||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
|
||||
</path>
|
||||
d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
|
||||
</svg>
|
||||
</a>
|
||||
{/if}
|
||||
|
|
@ -308,8 +303,7 @@
|
|||
maxlength={5000}
|
||||
placeholder={"Custom CSS"}
|
||||
class="input h-64 input-bordered input-primary rounded-md grow"
|
||||
required>
|
||||
</textarea>
|
||||
required />
|
||||
|
||||
<button
|
||||
on:click={csschange}
|
||||
|
|
@ -342,8 +336,9 @@
|
|||
</h5>
|
||||
</div>
|
||||
|
||||
<SlideToggle active="bg-success-600" bind:checked={_2faenabled}
|
||||
></SlideToggle>
|
||||
<SlideToggle
|
||||
active="bg-success-600"
|
||||
bind:checked={_2faenabled} />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Reference in New Issue