Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
7a218d77
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "9e4326a582b5827c4ab51314ced8285ad1033dbe"
Commit
7a218d77
authored
Jun 23, 2024
by
Timothy J. Baek
Browse files
refac: workspace
parent
ecf1d89a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
26 deletions
+104
-26
src/lib/components/workspace/Documents.svelte
src/lib/components/workspace/Documents.svelte
+6
-2
src/lib/components/workspace/Functions.svelte
src/lib/components/workspace/Functions.svelte
+36
-3
src/lib/components/workspace/Models.svelte
src/lib/components/workspace/Models.svelte
+13
-9
src/lib/components/workspace/Prompts.svelte
src/lib/components/workspace/Prompts.svelte
+13
-9
src/lib/components/workspace/Tools.svelte
src/lib/components/workspace/Tools.svelte
+36
-3
No files found.
src/lib/components/workspace/Documents.svelte
View file @
7a218d77
...
@@ -538,7 +538,9 @@
...
@@ -538,7 +538,9 @@
documentsImportInputElement.click();
documentsImportInputElement.click();
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Import Documents Mapping')}</div>
<div class=" self-center mr-2 font-medium line-clamp-1">
{$i18n.t('Import Documents Mapping')}
</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -565,7 +567,9 @@
...
@@ -565,7 +567,9 @@
saveAs(blob, `documents-mapping-export-${Date.now()}.json`);
saveAs(blob, `documents-mapping-export-${Date.now()}.json`);
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Export Documents Mapping')}</div>
<div class=" self-center mr-2 font-medium line-clamp-1">
{$i18n.t('Export Documents Mapping')}
</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
...
src/lib/components/workspace/Functions.svelte
View file @
7a218d77
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
{func.type}
{func.type}
</div>
</div>
<div>
<div
class=" line-clamp-1"
>
{func.name}
{func.name}
</div>
</div>
</div>
</div>
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
functionsImportInputElement.click();
functionsImportInputElement.click();
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Import Functions')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Import Functions')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
}
}
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Export Functions')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Export Functions')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -300,6 +300,39 @@
...
@@ -300,6 +300,39 @@
</div>
</div>
</div>
</div>
<div class=" my-16">
<div class=" text-lg font-semibold mb-3 line-clamp-1">
{$i18n.t('Made by OpenWebUI Community')}
</div>
<a
class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2"
href="https://openwebui.com/"
target="_blank"
>
<div class=" self-center w-10 flex-shrink-0">
<div
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6">
<path
fill-rule="evenodd"
d="M12 3.75a.75.75 0 01.75.75v6.75h6.75a.75.75 0 010 1.5h-6.75v6.75a.75.75 0 01-1.5 0v-6.75H4.5a.75.75 0 010-1.5h6.75V4.5a.75.75 0 01.75-.75z"
clip-rule="evenodd"
/>
</svg>
</div>
</div>
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a function')}</div>
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore custom functions')}
</div>
</div>
</a>
</div>
<ConfirmDialog
<ConfirmDialog
bind:show={showConfirm}
bind:show={showConfirm}
on:confirm={() => {
on:confirm={() => {
...
...
src/lib/components/workspace/Models.svelte
View file @
7a218d77
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
<hr class=" dark:border-gray-850 my-2.5" />
<hr class=" dark:border-gray-850 my-2.5" />
<a class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2" href="/workspace/models/create">
<a class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2" href="/workspace/models/create">
<div class=" self-center w-10">
<div class=" self-center w-10
flex-shrink-0
">
<div
<div
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
>
>
...
@@ -271,8 +271,8 @@
...
@@ -271,8 +271,8 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold">{$i18n.t('Create a model')}</div>
<div class=" font-bold
line-clamp-1
">{$i18n.t('Create a model')}</div>
<div class=" text-sm">{$i18n.t('Customize models for a specific purpose')}</div>
<div class=" text-sm
line-clamp-1
">{$i18n.t('Customize models for a specific purpose')}</div>
</div>
</div>
</a>
</a>
...
@@ -412,7 +412,7 @@
...
@@ -412,7 +412,7 @@
modelsImportInputElement.click();
modelsImportInputElement.click();
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Import Models')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Import Models')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -436,7 +436,7 @@
...
@@ -436,7 +436,7 @@
downloadModels($models);
downloadModels($models);
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Export Models')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Export Models')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -494,14 +494,16 @@
...
@@ -494,14 +494,16 @@
</div>
</div>
<div class=" my-16">
<div class=" my-16">
<div class=" text-lg font-semibold mb-3">{$i18n.t('Made by OpenWebUI Community')}</div>
<div class=" text-lg font-semibold mb-3 line-clamp-1">
{$i18n.t('Made by OpenWebUI Community')}
</div>
<a
<a
class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2"
class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2"
href="https://openwebui.com/"
href="https://openwebui.com/"
target="_blank"
target="_blank"
>
>
<div class=" self-center w-10">
<div class=" self-center w-10
flex-shrink-0
">
<div
<div
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
>
>
...
@@ -516,8 +518,10 @@
...
@@ -516,8 +518,10 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold">{$i18n.t('Discover a model')}</div>
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a model')}</div>
<div class=" text-sm">{$i18n.t('Discover, download, and explore model presets')}</div>
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore model presets')}
</div>
</div>
</div>
</a>
</a>
</div>
</div>
src/lib/components/workspace/Prompts.svelte
View file @
7a218d77
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
<div class=" flex flex-1 space-x-4 cursor-pointer w-full">
<div class=" flex flex-1 space-x-4 cursor-pointer w-full">
<a href={`/workspace/prompts/edit?command=${encodeURIComponent(prompt.command)}`}>
<a href={`/workspace/prompts/edit?command=${encodeURIComponent(prompt.command)}`}>
<div class=" flex-1 self-center pl-5">
<div class=" flex-1 self-center pl-5">
<div class=" font-bold">{prompt.command}</div>
<div class=" font-bold
line-clamp-1
">{prompt.command}</div>
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
{prompt.title}
{prompt.title}
</div>
</div>
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
promptsImportInputElement.click();
promptsImportInputElement.click();
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Import Prompts')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Import Prompts')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
saveAs(blob, `prompts-export-${Date.now()}.json`);
saveAs(blob, `prompts-export-${Date.now()}.json`);
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Export Prompts')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Export Prompts')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -270,14 +270,16 @@
...
@@ -270,14 +270,16 @@
</div>
</div>
<div class=" my-16">
<div class=" my-16">
<div class=" text-lg font-semibold mb-3">{$i18n.t('Made by OpenWebUI Community')}</div>
<div class=" text-lg font-semibold mb-3 line-clamp-1">
{$i18n.t('Made by OpenWebUI Community')}
</div>
<a
<a
class=" flex space-x-4 cursor-pointer w-full mb-
3
px-3 py-2"
class=" flex space-x-4 cursor-pointer w-full mb-
2
px-3 py-2"
href="https://openwebui.com/
?type=prompts
"
href="https://openwebui.com/"
target="_blank"
target="_blank"
>
>
<div class=" self-center w-10">
<div class=" self-center w-10
flex-shrink-0
">
<div
<div
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
>
>
...
@@ -292,8 +294,10 @@
...
@@ -292,8 +294,10 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold">{$i18n.t('Discover a prompt')}</div>
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a prompt')}</div>
<div class=" text-sm">{$i18n.t('Discover, download, and explore custom prompts')}</div>
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore custom prompts')}
</div>
</div>
</div>
</a>
</a>
</div>
</div>
src/lib/components/workspace/Tools.svelte
View file @
7a218d77
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
TOOL
TOOL
</div>
</div>
<div>
<div
class="line-clamp-1"
>
{tool.name}
{tool.name}
</div>
</div>
</div>
</div>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
toolsImportInputElement.click();
toolsImportInputElement.click();
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Import Tools')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Import Tools')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -276,7 +276,7 @@
...
@@ -276,7 +276,7 @@
}
}
}}
}}
>
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Export Tools')}</div>
<div class=" self-center mr-2 font-medium
line-clamp-1
">{$i18n.t('Export Tools')}</div>
<div class=" self-center">
<div class=" self-center">
<svg
<svg
...
@@ -296,6 +296,39 @@
...
@@ -296,6 +296,39 @@
</div>
</div>
</div>
</div>
<div class=" my-16">
<div class=" text-lg font-semibold mb-3 line-clamp-1">
{$i18n.t('Made by OpenWebUI Community')}
</div>
<a
class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2"
href="https://openwebui.com/"
target="_blank"
>
<div class=" self-center w-10 flex-shrink-0">
<div
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6">
<path
fill-rule="evenodd"
d="M12 3.75a.75.75 0 01.75.75v6.75h6.75a.75.75 0 010 1.5h-6.75v6.75a.75.75 0 01-1.5 0v-6.75H4.5a.75.75 0 010-1.5h6.75V4.5a.75.75 0 01.75-.75z"
clip-rule="evenodd"
/>
</svg>
</div>
</div>
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a tool')}</div>
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore custom tools')}
</div>
</div>
</a>
</div>
<ConfirmDialog
<ConfirmDialog
bind:show={showConfirm}
bind:show={showConfirm}
on:confirm={() => {
on:confirm={() => {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment