From c4629c8c2dee2205b8baab2844a7cda61ae6144d Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 10 Jun 2024 19:30:48 -0700 Subject: [PATCH] refac: tools --- src/lib/components/workspace/Tools.svelte | 135 ++++++++---------- .../workspace/Tools/ToolkitEditor.svelte | 116 +++++++++++++++ .../(app)/workspace/tools/create/+page.svelte | 5 + .../(app)/workspace/tools/edit/+page.svelte | 5 + 4 files changed, 184 insertions(+), 77 deletions(-) create mode 100644 src/lib/components/workspace/Tools/ToolkitEditor.svelte create mode 100644 src/routes/(app)/workspace/tools/create/+page.svelte create mode 100644 src/routes/(app)/workspace/tools/edit/+page.svelte diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte index 049f38cf6..b5db60a08 100644 --- a/src/lib/components/workspace/Tools.svelte +++ b/src/lib/components/workspace/Tools.svelte @@ -1,86 +1,67 @@ - -
-
-
-
-
-
{$i18n.t('Tools')}
-
-
+ + + {$i18n.t('Tools')} | {$WEBUI_NAME} + + -
+
+
{$i18n.t('Tools')}
+
- +
+
+
+ + +
+ +
+ +
+
diff --git a/src/lib/components/workspace/Tools/ToolkitEditor.svelte b/src/lib/components/workspace/Tools/ToolkitEditor.svelte new file mode 100644 index 000000000..bee31da7e --- /dev/null +++ b/src/lib/components/workspace/Tools/ToolkitEditor.svelte @@ -0,0 +1,116 @@ + + +
+
+
+
+ +
+ + +
+
+
diff --git a/src/routes/(app)/workspace/tools/create/+page.svelte b/src/routes/(app)/workspace/tools/create/+page.svelte new file mode 100644 index 000000000..91a461df6 --- /dev/null +++ b/src/routes/(app)/workspace/tools/create/+page.svelte @@ -0,0 +1,5 @@ + + + diff --git a/src/routes/(app)/workspace/tools/edit/+page.svelte b/src/routes/(app)/workspace/tools/edit/+page.svelte new file mode 100644 index 000000000..91a461df6 --- /dev/null +++ b/src/routes/(app)/workspace/tools/edit/+page.svelte @@ -0,0 +1,5 @@ + + +