format: whole project

This commit is contained in:
James Xylight committed 2025-02-04 16:23:31 -08:00
1 parent b883b5f6e0
commit 80269cf275
79 files changed
+590 -612

No files matched your search

+2 -2
View File
@@ -252,7 +252,7 @@ export async function load({ url }) {
filters: {
user: user ? moderationActions[0]?.moderatee?.name : undefined,
community: community ? moderationActions[0]?.community?.title : undefined,
moderator: modId ? moderationActions[0]?.moderator?.name : undefined
}
moderator: modId ? moderationActions[0]?.moderator?.name : undefined,
},
}
}
+3 -4
View File
@@ -17,14 +17,13 @@
import type { ActionName } from './+page.js'
interface Props {
action: ActionName;
action: ActionName
}
let { action }: Props = $props();
let { action }: Props = $props()
const getAction = (
action: ActionName
action: ActionName,
): { icon: IconSource; text: string; class: string } => {
switch (action) {
case 'ban': {
+2 -2
View File
@@ -10,10 +10,10 @@
import ModlogAction from '../ModlogAction.svelte'
interface Props {
item: ModLog;
item: ModLog
}
let { item }: Props = $props();
let { item }: Props = $props()
</script>
<Material padding="lg" class="flex flex-col gap-2">
@@ -7,10 +7,10 @@
import ModlogAction from '../ModlogAction.svelte'
interface Props {
item: ModLog;
item: ModLog
}
let { item }: Props = $props();
let { item }: Props = $props()
</script>
<tr class="">
@@ -28,7 +28,8 @@
user={item.moderator}
/>
{:else}
<p class="text-slate-500 dark:text-zinc-500">Hidden<p></p>
<p class="text-slate-500 dark:text-zinc-500">Hidden</p>
<p></p>
{/if}
</td>
<td>