mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Add theme toggle for templates
This commit is contained in:
@@ -21,7 +21,7 @@ export const load: PageServerLoad = async ({ params, fetch, url, parent, locals
|
||||
const parameters = new URLSearchParams();
|
||||
|
||||
if (searchQuery) {
|
||||
parameters.append("title_description_search", `wfts(english).${searchQuery}`);
|
||||
parameters.append("title", `wfts.${searchQuery}`);
|
||||
}
|
||||
|
||||
switch (filterBy) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
import { page } from "$app/stores";
|
||||
import { tables } from "$lib/db-schema";
|
||||
import { previewContent } from "$lib/runes.svelte";
|
||||
import { sanitize } from "isomorphic-dompurify";
|
||||
import DOMPurify from "isomorphic-dompurify";
|
||||
|
||||
const { data }: { data: PageServerData } = $props();
|
||||
|
||||
@@ -156,9 +156,12 @@
|
||||
<p>{table_name} — {operation}</p>
|
||||
</hgroup>
|
||||
|
||||
<pre style="white-space: pre-wrap">{@html sanitize(htmlDiff(oldValue, newValue), {
|
||||
ALLOWED_TAGS: ["ins", "del"]
|
||||
})}</pre>
|
||||
<pre style="white-space: pre-wrap">{@html DOMPurify.sanitize(
|
||||
htmlDiff(oldValue, newValue),
|
||||
{
|
||||
ALLOWED_TAGS: ["ins", "del"]
|
||||
}
|
||||
)}</pre>
|
||||
</Modal>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user