+
{$i18n.t('Functions')}
-
-
- {#if $user?.role === 'admin'}
-
-
- {#if functions.length}
-
- {/if}
- {/if}
-
{
- goto('/admin/functions/create');
- }}
- importFromLinkHandler={() => {
- showImportModal = true;
- }}
- >
-
-
-
-
{$i18n.t('New Function')}
-
-
+
+ {
+ showImportModal = true;
+ }
+ },
+ {
+ id: 'functions-import',
+ label: $i18n.t('Import JSON'),
+ onClick: () => functionsImportInputElement?.click(),
+ visible: $user?.role === 'admin'
+ },
+ {
+ id: 'functions-export',
+ label: $i18n.t('Export JSON'),
+ onClick: downloadFunctions,
+ visible: $user?.role === 'admin' && functions.length > 0
+ }
+ ]}
+ />
diff --git a/src/lib/components/admin/Settings/Events.svelte b/src/lib/components/admin/Settings/Events.svelte
index 980ba276cb..3225634796 100644
--- a/src/lib/components/admin/Settings/Events.svelte
+++ b/src/lib/components/admin/Settings/Events.svelte
@@ -51,6 +51,9 @@
events: ['*'] as string[]
};
+ const highContrastInputClass =
+ 'rounded-lg border border-gray-100/50 bg-gray-50/40 px-2 py-1.5 text-gray-700 outline-hidden transition-colors placeholder:text-gray-300 focus:border-blue-400 dark:border-white/[0.04] dark:bg-white/[0.03] dark:text-gray-300 dark:placeholder:text-gray-700 dark:focus:border-blue-500';
+
$: events = eventItems.map((item) => item.event);
$: eventDetails = Object.fromEntries(eventItems.map((item) => [item.event, item]));
$: eventFilter = pattern.trim().toLowerCase().replace(/\*$/, '');
@@ -417,7 +420,7 @@
>
{
let urls = url
.split('\n')
@@ -68,7 +71,7 @@
-
- {$i18n.t(
- "You can personalize your interactions with LLMs by adding memories through the 'Manage' button below, making them more helpful and tailored to you."
- )}
+ {#if enableMemory}
+
+
+
+
+ {$i18n.t('Memory')}
+
+
+ {#if !loadingMemories}
+
{memories.length}
+ {/if}
+
+
+
+
+
+ {#if loadingMemories}
+
+
+
+ {:else}
+ {#if memories.length > 0}
+
+
+
+ {#if query}
+
+ {/if}
+
+ {/if}
+
+ {#if sortedMemories.length === 0}
+
+ {#if memories.length === 0}
+ {$i18n.t('Memories accessible by LLMs will be shown here.')}
+ {:else}
+ {$i18n.t('No results found')}
+ {/if}
+
+ {:else}
+
+ {#each sortedMemories as memory (memory.id)}
+
+
+ {memory.content}
+
+
+
+
+
+
+ {/each}
+
+ {/if}
+
+
+ {/if}
-
-
-
-
-
+ {/if}