|
@@ -1,4 +1,7 @@
|
|
|
<script lang="ts">
|
|
|
+ import DOMPurify from 'dompurify';
|
|
|
+ import { marked } from 'marked';
|
|
|
+
|
|
|
import { getAdminDetails } from '$lib/apis/auths';
|
|
|
import { onMount, tick, getContext } from 'svelte';
|
|
|
import { config } from '$lib/stores';
|
|
@@ -38,7 +41,11 @@
|
|
|
style="white-space: pre-wrap;"
|
|
|
>
|
|
|
{#if ($config?.ui?.pending_user_overlay_content ?? '').trim() !== ''}
|
|
|
- {$config.ui.pending_user_overlay_content}
|
|
|
+ {@html marked.parse(
|
|
|
+ DOMPurify.sanitize(
|
|
|
+ ($config?.ui?.pending_user_overlay_content ?? '').replace(/\n/g, '<br>')
|
|
|
+ )
|
|
|
+ )}
|
|
|
{:else}
|
|
|
{$i18n.t('Your account status is currently pending activation.')}{'\n'}{$i18n.t(
|
|
|
'To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.'
|