From 7a218d77b7cc2e4a1724775e4ffe91e39a613d69 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 23 Jun 2024 16:03:21 -0700 Subject: [PATCH] refac: workspace --- src/lib/components/workspace/Documents.svelte | 8 +++- src/lib/components/workspace/Functions.svelte | 39 +++++++++++++++++-- src/lib/components/workspace/Models.svelte | 22 ++++++----- src/lib/components/workspace/Prompts.svelte | 22 ++++++----- src/lib/components/workspace/Tools.svelte | 39 +++++++++++++++++-- 5 files changed, 104 insertions(+), 26 deletions(-) diff --git a/src/lib/components/workspace/Documents.svelte b/src/lib/components/workspace/Documents.svelte index 5e918b6f0..9bb416468 100644 --- a/src/lib/components/workspace/Documents.svelte +++ b/src/lib/components/workspace/Documents.svelte @@ -538,7 +538,9 @@ documentsImportInputElement.click(); }} > -
{$i18n.t('Import Documents Mapping')}
+
+ {$i18n.t('Import Documents Mapping')} +
-
{$i18n.t('Export Documents Mapping')}
+
+ {$i18n.t('Export Documents Mapping')} +
-
+
{func.name}
@@ -246,7 +246,7 @@ functionsImportInputElement.click(); }} > -
{$i18n.t('Import Functions')}
+
{$i18n.t('Import Functions')}
-
{$i18n.t('Export Functions')}
+
{$i18n.t('Export Functions')}
+ + { diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte index e0a5c4fba..ce2f6ba3a 100644 --- a/src/lib/components/workspace/Models.svelte +++ b/src/lib/components/workspace/Models.svelte @@ -256,7 +256,7 @@
-
+
@@ -271,8 +271,8 @@
-
{$i18n.t('Create a model')}
-
{$i18n.t('Customize models for a specific purpose')}
+
{$i18n.t('Create a model')}
+
{$i18n.t('Customize models for a specific purpose')}
@@ -412,7 +412,7 @@ modelsImportInputElement.click(); }} > -
{$i18n.t('Import Models')}
+
{$i18n.t('Import Models')}
-
{$i18n.t('Export Models')}
+
{$i18n.t('Export Models')}
-
{$i18n.t('Made by OpenWebUI Community')}
+
+ {$i18n.t('Made by OpenWebUI Community')} +
-
+ diff --git a/src/lib/components/workspace/Prompts.svelte b/src/lib/components/workspace/Prompts.svelte index 05884208b..b01d2935d 100644 --- a/src/lib/components/workspace/Prompts.svelte +++ b/src/lib/components/workspace/Prompts.svelte @@ -115,7 +115,7 @@
-
{prompt.command}
+
{prompt.command}
{prompt.title}
@@ -213,7 +213,7 @@ promptsImportInputElement.click(); }} > -
{$i18n.t('Import Prompts')}
+
{$i18n.t('Import Prompts')}
-
{$i18n.t('Export Prompts')}
+
{$i18n.t('Export Prompts')}
-
{$i18n.t('Made by OpenWebUI Community')}
+
+ {$i18n.t('Made by OpenWebUI Community')} +
-
+ diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte index a11c9f722..9c70a4e52 100644 --- a/src/lib/components/workspace/Tools.svelte +++ b/src/lib/components/workspace/Tools.svelte @@ -149,7 +149,7 @@ TOOL
-
+
{tool.name}
@@ -242,7 +242,7 @@ toolsImportInputElement.click(); }} > -
{$i18n.t('Import Tools')}
+
{$i18n.t('Import Tools')}
-
{$i18n.t('Export Tools')}
+
{$i18n.t('Export Tools')}
+ + {