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
088e7b02
Commit
088e7b02
authored
Jul 08, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
4b6ee584
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
26 additions
and
26 deletions
+26
-26
src/lib/components/ChangelogModal.svelte
src/lib/components/ChangelogModal.svelte
+3
-3
src/lib/components/chat/Messages/Name.svelte
src/lib/components/chat/Messages/Name.svelte
+1
-1
src/lib/components/chat/ModelSelector/Selector.svelte
src/lib/components/chat/ModelSelector/Selector.svelte
+2
-2
src/lib/components/common/Banner.svelte
src/lib/components/common/Banner.svelte
+3
-3
src/lib/components/documents/EditDocModal.svelte
src/lib/components/documents/EditDocModal.svelte
+1
-1
src/lib/components/workspace/Documents.svelte
src/lib/components/workspace/Documents.svelte
+1
-1
src/lib/components/workspace/Functions.svelte
src/lib/components/workspace/Functions.svelte
+3
-3
src/lib/components/workspace/Models.svelte
src/lib/components/workspace/Models.svelte
+3
-3
src/lib/components/workspace/Models/Knowledge/Selector.svelte
...lib/components/workspace/Models/Knowledge/Selector.svelte
+1
-1
src/lib/components/workspace/Prompts.svelte
src/lib/components/workspace/Prompts.svelte
+2
-2
src/lib/components/workspace/Tools.svelte
src/lib/components/workspace/Tools.svelte
+3
-3
src/routes/(app)/workspace/prompts/create/+page.svelte
src/routes/(app)/workspace/prompts/create/+page.svelte
+1
-1
src/routes/(app)/workspace/prompts/edit/+page.svelte
src/routes/(app)/workspace/prompts/edit/+page.svelte
+1
-1
src/routes/auth/+page.svelte
src/routes/auth/+page.svelte
+1
-1
No files found.
src/lib/components/ChangelogModal.svelte
View file @
088e7b02
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<Modal bind:show>
<Modal bind:show>
<div class="px-5 pt-4 dark:text-gray-300 text-gray-700">
<div class="px-5 pt-4 dark:text-gray-300 text-gray-700">
<div class="flex justify-between items-start">
<div class="flex justify-between items-start">
<div class="text-xl font-bold">
<div class="text-xl font-
semi
bold">
{$i18n.t('What’s New in')}
{$i18n.t('What’s New in')}
{$WEBUI_NAME}
{$WEBUI_NAME}
<Confetti x={[-1, -0.25]} y={[0, 0.5]} />
<Confetti x={[-1, -0.25]} y={[0, 0.5]} />
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
{#if changelog}
{#if changelog}
{#each Object.keys(changelog) as version}
{#each Object.keys(changelog) as version}
<div class=" mb-3 pr-2">
<div class=" mb-3 pr-2">
<div class="font-bold text-xl mb-1 dark:text-white">
<div class="font-
semi
bold text-xl mb-1 dark:text-white">
v{version} - {changelog[version].date}
v{version} - {changelog[version].date}
</div>
</div>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
{#each Object.keys(changelog[version]).filter((section) => section !== 'date') as section}
{#each Object.keys(changelog[version]).filter((section) => section !== 'date') as section}
<div class="">
<div class="">
<div
<div
class="font-bold uppercase text-xs {section === 'added'
class="font-
semi
bold uppercase text-xs {section === 'added'
? 'text-white bg-blue-600'
? 'text-white bg-blue-600'
: section === 'fixed'
: section === 'fixed'
? 'text-white bg-green-600'
? 'text-white bg-green-600'
...
...
src/lib/components/chat/Messages/Name.svelte
View file @
088e7b02
<div class=" self-center font-bold mb-0.5 line-clamp-1 contents">
<div class=" self-center font-
semi
bold mb-0.5 line-clamp-1 contents">
<slot />
<slot />
</div>
</div>
src/lib/components/chat/ModelSelector/Selector.svelte
View file @
088e7b02
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
<div class="flex gap-0.5 self-start h-full mb-0.5 -translate-x-1">
<div class="flex gap-0.5 self-start h-full mb-0.5 -translate-x-1">
{#each item.model?.info?.meta.tags as tag}
{#each item.model?.info?.meta.tags as tag}
<div
<div
class=" text-xs font-b
lack
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class=" text-xs font-b
old
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
{tag.name}
{tag.name}
</div>
</div>
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
<div class="flex gap-0.5 self-center items-center h-full translate-y-[0.5px]">
<div class="flex gap-0.5 self-center items-center h-full translate-y-[0.5px]">
{#each item.model?.info?.meta.tags as tag}
{#each item.model?.info?.meta.tags as tag}
<div
<div
class=" text-xs font-b
lack
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class=" text-xs font-b
old
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
{tag.name}
{tag.name}
</div>
</div>
...
...
src/lib/components/common/Banner.svelte
View file @
088e7b02
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<div class=" flex flex-col md:flex-row md:items-center flex-1 text-sm w-fit gap-1.5">
<div class=" flex flex-col md:flex-row md:items-center flex-1 text-sm w-fit gap-1.5">
<div class="flex justify-between self-start">
<div class="flex justify-between self-start">
<div
<div
class=" text-xs font-b
lack
{classNames[banner.type] ??
class=" text-xs font-b
old
{classNames[banner.type] ??
classNames['info']} w-fit px-2 rounded uppercase line-clamp-1 mr-0.5"
classNames['info']} w-fit px-2 rounded uppercase line-clamp-1 mr-0.5"
>
>
{banner.type}
{banner.type}
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
{#if banner.url}
{#if banner.url}
<div class="flex md:hidden group w-fit md:items-center">
<div class="flex md:hidden group w-fit md:items-center">
<a
<a
class="text-gray-700 dark:text-white text-xs font-bold underline"
class="text-gray-700 dark:text-white text-xs font-
semi
bold underline"
href="/assets/files/whitepaper.pdf"
href="/assets/files/whitepaper.pdf"
target="_blank">Learn More</a
target="_blank">Learn More</a
>
>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
{#if banner.url}
{#if banner.url}
<div class="hidden md:flex group w-fit md:items-center">
<div class="hidden md:flex group w-fit md:items-center">
<a
<a
class="text-gray-700 dark:text-white text-xs font-bold underline"
class="text-gray-700 dark:text-white text-xs font-
semi
bold underline"
href="/"
href="/"
target="_blank">Learn More</a
target="_blank">Learn More</a
>
>
...
...
src/lib/components/documents/EditDocModal.svelte
View file @
088e7b02
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
<div class="flex flex-1">
<div class="flex flex-1">
<div
<div
class="bg-gray-200 dark:bg-gray-800 font-bold px-3 py-0.5 border border-r-0 dark:border-gray-800 rounded-l-xl flex items-center"
class="bg-gray-200 dark:bg-gray-800 font-
semi
bold px-3 py-0.5 border border-r-0 dark:border-gray-800 rounded-l-xl flex items-center"
>
>
#
#
</div>
</div>
...
...
src/lib/components/workspace/Documents.svelte
View file @
088e7b02
...
@@ -407,7 +407,7 @@
...
@@ -407,7 +407,7 @@
{/if}
{/if}
</div>
</div>
<div class=" self-center flex-1">
<div class=" self-center flex-1">
<div class=" font-bold line-clamp-1">#{doc.name} ({doc.filename})</div>
<div class=" font-
semi
bold line-clamp-1">#{doc.name} ({doc.filename})</div>
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
{doc.title}
{doc.title}
</div>
</div>
...
...
src/lib/components/workspace/Functions.svelte
View file @
088e7b02
...
@@ -200,14 +200,14 @@
...
@@ -200,14 +200,14 @@
<div class=" flex-1 self-center pl-1">
<div class=" flex-1 self-center pl-1">
<div class=" font-semibold flex items-center gap-1.5">
<div class=" font-semibold flex items-center gap-1.5">
<div
<div
class=" text-xs font-b
lack
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class=" text-xs font-b
old
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
{func.type}
{func.type}
</div>
</div>
{#if func?.meta?.manifest?.version}
{#if func?.meta?.manifest?.version}
<div
<div
class="text-xs font-b
lack
px-1 rounded line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class="text-xs font-b
old
px-1 rounded line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
v{func?.meta?.manifest?.version ?? ''}
v{func?.meta?.manifest?.version ?? ''}
</div>
</div>
...
@@ -430,7 +430,7 @@
...
@@ -430,7 +430,7 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a function')}</div>
<div class=" font-
semi
bold line-clamp-1">{$i18n.t('Discover a function')}</div>
<div class=" text-sm line-clamp-1">
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore custom functions')}
{$i18n.t('Discover, download, and explore custom functions')}
</div>
</div>
...
...
src/lib/components/workspace/Models.svelte
View file @
088e7b02
...
@@ -271,7 +271,7 @@
...
@@ -271,7 +271,7 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Create a model')}</div>
<div class=" font-
semi
bold line-clamp-1">{$i18n.t('Create a model')}</div>
<div class=" text-sm line-clamp-1">{$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>
...
@@ -307,7 +307,7 @@
...
@@ -307,7 +307,7 @@
<div
<div
class=" flex-1 self-center {model?.info?.meta?.hidden ?? false ? 'text-gray-500' : ''}"
class=" flex-1 self-center {model?.info?.meta?.hidden ?? false ? 'text-gray-500' : ''}"
>
>
<div class=" font-bold line-clamp-1">{model.name}</div>
<div class=" font-
semi
bold line-clamp-1">{model.name}</div>
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
{!!model?.info?.meta?.description ? model?.info?.meta?.description : model.id}
{!!model?.info?.meta?.description ? model?.info?.meta?.description : model.id}
</div>
</div>
...
@@ -518,7 +518,7 @@
...
@@ -518,7 +518,7 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a model')}</div>
<div class=" font-
semi
bold line-clamp-1">{$i18n.t('Discover a model')}</div>
<div class=" text-sm line-clamp-1">
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore model presets')}
{$i18n.t('Discover, download, and explore model presets')}
</div>
</div>
...
...
src/lib/components/workspace/Models/Knowledge/Selector.svelte
View file @
088e7b02
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
<div class="flex items-center">
<div class="flex items-center">
<div class="flex flex-col">
<div class="flex flex-col">
<div
<div
class=" w-fit text-xs font-b
lack
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class=" w-fit text-xs font-b
old
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
{item?.type ?? 'Document'}
{item?.type ?? 'Document'}
</div>
</div>
...
...
src/lib/components/workspace/Prompts.svelte
View file @
088e7b02
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,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 line-clamp-1">{prompt.command}</div>
<div class=" font-
semi
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>
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a prompt')}</div>
<div class=" font-
semi
bold line-clamp-1">{$i18n.t('Discover a prompt')}</div>
<div class=" text-sm line-clamp-1">
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore custom prompts')}
{$i18n.t('Discover, download, and explore custom prompts')}
</div>
</div>
...
...
src/lib/components/workspace/Tools.svelte
View file @
088e7b02
...
@@ -177,14 +177,14 @@
...
@@ -177,14 +177,14 @@
<div class=" flex-1 self-center pl-1">
<div class=" flex-1 self-center pl-1">
<div class=" font-semibold flex items-center gap-1.5">
<div class=" font-semibold flex items-center gap-1.5">
<div
<div
class=" text-xs font-b
lack
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class=" text-xs font-b
old
px-1 rounded uppercase line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
TOOL
TOOL
</div>
</div>
{#if tool?.meta?.manifest?.version}
{#if tool?.meta?.manifest?.version}
<div
<div
class="text-xs font-b
lack
px-1 rounded line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
class="text-xs font-b
old
px-1 rounded line-clamp-1 bg-gray-500/20 text-gray-700 dark:text-gray-200"
>
>
v{tool?.meta?.manifest?.version ?? ''}
v{tool?.meta?.manifest?.version ?? ''}
</div>
</div>
...
@@ -389,7 +389,7 @@
...
@@ -389,7 +389,7 @@
</div>
</div>
<div class=" self-center">
<div class=" self-center">
<div class=" font-bold line-clamp-1">{$i18n.t('Discover a tool')}</div>
<div class=" font-
semi
bold line-clamp-1">{$i18n.t('Discover a tool')}</div>
<div class=" text-sm line-clamp-1">
<div class=" text-sm line-clamp-1">
{$i18n.t('Discover, download, and explore custom tools')}
{$i18n.t('Discover, download, and explore custom tools')}
</div>
</div>
...
...
src/routes/(app)/workspace/prompts/create/+page.svelte
View file @
088e7b02
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
<div class="flex items-center mb-1">
<div class="flex items-center mb-1">
<div
<div
class="bg-gray-200 dark:bg-gray-600 font-bold px-3 py-1 border border-r-0 dark:border-gray-600 rounded-l-lg"
class="bg-gray-200 dark:bg-gray-600 font-
semi
bold px-3 py-1 border border-r-0 dark:border-gray-600 rounded-l-lg"
>
>
/
/
</div>
</div>
...
...
src/routes/(app)/workspace/prompts/edit/+page.svelte
View file @
088e7b02
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<div class="flex items-center mb-1">
<div class="flex items-center mb-1">
<div
<div
class="bg-gray-200 dark:bg-gray-600 font-bold px-3 py-1 border border-r-0 dark:border-gray-600 rounded-l-lg"
class="bg-gray-200 dark:bg-gray-600 font-
semi
bold px-3 py-1 border border-r-0 dark:border-gray-600 rounded-l-lg"
>
>
/
/
</div>
</div>
...
...
src/routes/auth/+page.svelte
View file @
088e7b02
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
<!-- <div class="hidden lg:flex lg:flex-1 px-10 md:px-16 w-full bg-yellow-50 justify-center">
<!-- <div class="hidden lg:flex lg:flex-1 px-10 md:px-16 w-full bg-yellow-50 justify-center">
<div class=" my-auto pb-16 text-left">
<div class=" my-auto pb-16 text-left">
<div>
<div>
<div class=" font-bold text-yellow-600 text-4xl">
<div class=" font-
semi
bold text-yellow-600 text-4xl">
Get up and running with <br />large language models, locally.
Get up and running with <br />large language models, locally.
</div>
</div>
...
...
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