feat: add all admin actions

This commit is contained in:
Xyphyn committed 2023-08-23 18:39:22 -07:00
1 parent 01032a0218
commit 57dbe5176a
3 files changed
+120 -5

No files matched your search

+31 -1
View File
@@ -1,6 +1,8 @@
<script lang="ts">
import type { IconSource } from 'svelte-hero-icons'
import {
CheckCircle,
Fire,
Icon,
InformationCircle,
LockClosed,
@@ -25,7 +27,28 @@
return {
icon: XCircle,
class: 'text-red-600 dark:text-red-400',
text: 'Ban',
text: 'Ban (instance)',
}
}
case 'banCommunity': {
return {
icon: XCircle,
class: 'text-red-600 dark:text-red-400',
text: 'Ban (Community)',
}
}
case 'unban': {
return {
icon: CheckCircle,
class: 'text-green-600 dark:text-green-400',
text: 'Unban (instance)',
}
}
case 'unbanCommunity': {
return {
icon: CheckCircle,
class: 'text-green-600 dark:text-green-400',
text: 'Unban (Community)',
}
}
case 'commentRemoval': {
@@ -84,6 +107,13 @@
text: 'Unlocked Post',
}
}
case 'purge': {
return {
icon: Fire,
class: 'text-red-600 dark:text-red-400',
text: 'Purge',
}
}
}
return {