mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 16:51:17 +00:00
refac: workspace
This commit is contained in:
parent
ecf1d89a8b
commit
7a218d77b7
@ -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 @@
|
|||||||
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
|
||||||
|
@ -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 @@
|
|||||||
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 @@
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<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 @@
|
|||||||
</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={() => {
|
||||||
|
@ -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 @@
|
|||||||
</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 @@
|
|||||||
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 @@
|
|||||||
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 @@
|
|||||||
</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 @@
|
|||||||
</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>
|
||||||
|
@ -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 @@
|
|||||||
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 @@
|
|||||||
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 @@
|
|||||||
</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 @@
|
|||||||
</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>
|
||||||
|
@ -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 @@
|
|||||||
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 @@
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<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 @@
|
|||||||
</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={() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user