feat: add reporting

This commit is contained in:
Xyphyn committed 2023-07-26 19:13:26 -07:00
1 parent ff2d424a99
commit 6fcef02809
14 files changed
+206 -33

No files matched your search

+2
View File
@@ -5,6 +5,7 @@
import nProgress from 'nprogress'
import 'nprogress/nprogress.css'
import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte'
import Moderation from '$lib/components/lemmy/moderation/Moderation.svelte'
nProgress.configure({
minimum: 0.4,
@@ -30,6 +31,7 @@
<Navbar />
<ToastContainer />
<Moderation />
<main class="mx-auto max-w-5xl p-4 flex-1 w-full">
<slot />
</main>
+3 -2
View File
@@ -10,15 +10,15 @@
} from '$lib/components/ui/toasts/toasts.js'
import {
DEFAULT_INSTANCE_URL,
LINKED_INSTANCE_URL,
authData,
getClient,
user,
validateInstance,
} from '$lib/lemmy.js'
import { Color } from '$lib/ui/colors.js'
let data = {
instance: '',
instance: DEFAULT_INSTANCE_URL,
username: '',
password: '',
totp: '',
@@ -89,6 +89,7 @@
id="instance_url"
label="Instance URL"
placeholder={DEFAULT_INSTANCE_URL}
disabled={LINKED_INSTANCE_URL != undefined}
bind:value={data.instance}
class="flex-1"
required