mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: playground
This commit is contained in:
15
src/routes/(app)/playground/+page.svelte
Normal file
15
src/routes/(app)/playground/+page.svelte
Normal file
@@ -0,0 +1,15 @@
|
||||
<script>
|
||||
import { showSidebar } from '$lib/stores';
|
||||
|
||||
import Playground from '$lib/components/workspace/Playground.svelte';
|
||||
</script>
|
||||
|
||||
<div
|
||||
class=" flex flex-col w-full min-h-screen max-h-screen {$showSidebar
|
||||
? 'md:max-w-[calc(100%-260px)]'
|
||||
: ''}"
|
||||
>
|
||||
<div class=" py-4 px-5 flex-1 max-h-full overflow-y-auto">
|
||||
<Playground />
|
||||
</div>
|
||||
</div>
|
||||
@@ -82,13 +82,6 @@
|
||||
>
|
||||
{$i18n.t('Functions')}
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="min-w-fit rounded-lg p-1.5 px-3 {$page.url.pathname.includes('/workspace/playground')
|
||||
? 'bg-gray-50 dark:bg-gray-850'
|
||||
: ''} transition"
|
||||
href="/workspace/playground">{$i18n.t('Playground')}</a
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<script>
|
||||
import Playground from '$lib/components/workspace/Playground.svelte';
|
||||
</script>
|
||||
|
||||
<Playground />
|
||||
Reference in New Issue
Block a user