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
967277f1
"...gtest/git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "d21c142eb89ce42817165368641329072e2ad8fb"
Commit
967277f1
authored
May 15, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
f7fcf956
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
55 additions
and
18 deletions
+55
-18
src/app.css
src/app.css
+11
-0
src/lib/components/admin/Settings/General.svelte
src/lib/components/admin/Settings/General.svelte
+2
-2
src/lib/components/chat/Settings/Account.svelte
src/lib/components/chat/Settings/Account.svelte
+1
-1
src/lib/components/chat/Settings/Advanced.svelte
src/lib/components/chat/Settings/Advanced.svelte
+1
-1
src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte
...b/components/chat/Settings/Advanced/AdvancedParams.svelte
+2
-2
src/lib/components/chat/Settings/Audio.svelte
src/lib/components/chat/Settings/Audio.svelte
+2
-2
src/lib/components/chat/Settings/Connections.svelte
src/lib/components/chat/Settings/Connections.svelte
+1
-1
src/lib/components/chat/Settings/General.svelte
src/lib/components/chat/Settings/General.svelte
+2
-2
src/lib/components/chat/Settings/Interface.svelte
src/lib/components/chat/Settings/Interface.svelte
+2
-2
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+27
-1
src/lib/components/common/Modal.svelte
src/lib/components/common/Modal.svelte
+2
-2
src/lib/components/documents/Settings/General.svelte
src/lib/components/documents/Settings/General.svelte
+1
-1
src/lib/components/documents/Settings/QueryParams.svelte
src/lib/components/documents/Settings/QueryParams.svelte
+1
-1
No files found.
src/app.css
View file @
967277f1
...
@@ -100,3 +100,14 @@ select {
...
@@ -100,3 +100,14 @@ select {
-ms-overflow-style
:
none
;
/* IE and Edge */
-ms-overflow-style
:
none
;
/* IE and Edge */
scrollbar-width
:
none
;
/* Firefox */
scrollbar-width
:
none
;
/* Firefox */
}
}
input
::-webkit-outer-spin-button
,
input
::-webkit-inner-spin-button
{
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance
:
none
;
margin
:
0
;
/* <-- Apparently some margin are still there even though it's hidden */
}
input
[
type
=
'number'
]
{
-moz-appearance
:
textfield
;
/* Firefox */
}
src/lib/components/admin/Settings/General.svelte
View file @
967277f1
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<div class="flex mt-2 space-x-2">
<div class="flex mt-2 space-x-2">
<input
<input
class="w-full rounded py-
1.5
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
0
0 outline-none
border border-gray-100 dark:border-gray-600
"
class="w-full rounded
-lg
py-
2
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
5
0 outline-none"
type="text"
type="text"
placeholder={`https://example.com/webhook`}
placeholder={`https://example.com/webhook`}
bind:value={webhookUrl}
bind:value={webhookUrl}
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
<div class="flex mt-2 space-x-2">
<div class="flex mt-2 space-x-2">
<input
<input
class="w-full rounded py-
1.5
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
0
0 outline-none
border border-gray-100 dark:border-gray-600
"
class="w-full rounded
-lg
py-
2
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
5
0 outline-none"
type="text"
type="text"
placeholder={`e.g.) "30m","1h", "10d". `}
placeholder={`e.g.) "30m","1h", "10d". `}
bind:value={JWTExpiresIn}
bind:value={JWTExpiresIn}
...
...
src/lib/components/chat/Settings/Account.svelte
View file @
967277f1
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</script>
</script>
<div class="flex flex-col h-full justify-between text-sm">
<div class="flex flex-col h-full justify-between text-sm">
<div class=" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
2
rem]">
<div class=" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
5
rem]">
<input
<input
id="profile-image-input"
id="profile-image-input"
bind:this={profileImageInputElement}
bind:this={profileImageInputElement}
...
...
src/lib/components/chat/Settings/Advanced.svelte
View file @
967277f1
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
{#if keepAlive !== null}
{#if keepAlive !== null}
<div class="flex mt-1 space-x-2">
<div class="flex mt-1 space-x-2">
<input
<input
class="w-full rounded py-
1.5
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
0
0 outline-none
border border-gray-100 dark:border-gray-600
"
class="w-full rounded
-lg
py-
2
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
5
0 outline-none"
type="text"
type="text"
placeholder={$i18n.t("e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.")}
placeholder={$i18n.t("e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.")}
bind:value={keepAlive}
bind:value={keepAlive}
...
...
src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte
View file @
967277f1
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<div class=" w-20 text-xs font-medium self-center">{$i18n.t('Seed')}</div>
<div class=" w-20 text-xs font-medium self-center">{$i18n.t('Seed')}</div>
<div class=" flex-1 self-center">
<div class=" flex-1 self-center">
<input
<input
class="w-full rounded py-
1.5
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
0
0 outline-none
border border-gray-100 dark:border-gray-600
"
class="w-full rounded
-lg
py-
2
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
5
0 outline-none"
type="number"
type="number"
placeholder="Enter Seed"
placeholder="Enter Seed"
bind:value={options.seed}
bind:value={options.seed}
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<div class=" w-20 text-xs font-medium self-center">{$i18n.t('Stop Sequence')}</div>
<div class=" w-20 text-xs font-medium self-center">{$i18n.t('Stop Sequence')}</div>
<div class=" flex-1 self-center">
<div class=" flex-1 self-center">
<input
<input
class="w-full rounded py-
1.5
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
0
0 outline-none
border border-gray-100 dark:border-gray-600
"
class="w-full rounded
-lg
py-
2
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
5
0 outline-none"
type="text"
type="text"
placeholder={$i18n.t('Enter stop sequence')}
placeholder={$i18n.t('Enter stop sequence')}
bind:value={options.stop}
bind:value={options.stop}
...
...
src/lib/components/chat/Settings/Audio.svelte
View file @
967277f1
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
dispatch
(
'save'
);
dispatch
(
'save'
);
}}
}}
>
>
<
div
class
=
" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
2
rem]"
>
<
div
class
=
" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
5
rem]"
>
<
div
>
<
div
>
<
div
class
=
" mb-1 text-sm font-medium"
>{$
i18n
.
t
(
'STT Settings'
)}</
div
>
<
div
class
=
" mb-1 text-sm font-medium"
>{$
i18n
.
t
(
'STT Settings'
)}</
div
>
...
@@ -345,7 +345,7 @@
...
@@ -345,7 +345,7 @@
{/
if
}
{/
if
}
</
div
>
</
div
>
<
div
class
=
"flex justify-end
pt-3
text-sm font-medium"
>
<
div
class
=
"flex justify-end text-sm font-medium"
>
<
button
<
button
class
=
" px-4 py-2 bg-emerald-700 hover:bg-emerald-800 text-gray-100 transition rounded-lg"
class
=
" px-4 py-2 bg-emerald-700 hover:bg-emerald-800 text-gray-100 transition rounded-lg"
type
=
"submit"
type
=
"submit"
...
...
src/lib/components/chat/Settings/Connections.svelte
View file @
967277f1
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
dispatch('save');
dispatch('save');
}}
}}
>
>
<div class=" pr-1.5 overflow-y-scroll max-h-[2
2
rem] space-y-3">
<div class=" pr-1.5 overflow-y-scroll max-h-[2
5
rem] space-y-3">
<div class=" space-y-3">
<div class=" space-y-3">
<div class="mt-2 space-y-2 pr-1.5">
<div class="mt-2 space-y-2 pr-1.5">
<div class="flex justify-between items-center text-sm">
<div class="flex justify-between items-center text-sm">
...
...
src/lib/components/chat/Settings/General.svelte
View file @
967277f1
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
</script>
</script>
<div class="flex flex-col h-full justify-between text-sm">
<div class="flex flex-col h-full justify-between text-sm">
<div class=" pr-1.5 overflow-y-scroll max-h-[2
2
rem]">
<div class=" pr-1.5 overflow-y-scroll max-h-[2
5
rem]">
<div class="">
<div class="">
<div class=" mb-1 text-sm font-medium">{$i18n.t('WebUI Settings')}</div>
<div class=" mb-1 text-sm font-medium">{$i18n.t('WebUI Settings')}</div>
...
@@ -253,7 +253,7 @@
...
@@ -253,7 +253,7 @@
{#if keepAlive !== null}
{#if keepAlive !== null}
<div class="flex mt-1 space-x-2">
<div class="flex mt-1 space-x-2">
<input
<input
class="w-full rounded py-
1.5
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
0
0 outline-none
border border-gray-100 dark:border-gray-600
"
class="w-full rounded
-lg
py-
2
px-4 text-sm dark:text-gray-300 dark:bg-gray-8
5
0 outline-none"
type="text"
type="text"
placeholder={$i18n.t("e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.")}
placeholder={$i18n.t("e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.")}
bind:value={keepAlive}
bind:value={keepAlive}
...
...
src/lib/components/chat/Settings/Interface.svelte
View file @
967277f1
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
dispatch('save');
dispatch('save');
}}
}}
>
>
<div class=" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
2
rem]">
<div class=" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
5
rem]">
<div>
<div>
<div class=" mb-1 text-sm font-medium">{$i18n.t('WebUI Add-ons')}</div>
<div class=" mb-1 text-sm font-medium">{$i18n.t('WebUI Add-ons')}</div>
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
{#if $user.role === 'admin'}
{#if $user.role === 'admin'}
<hr class=" dark:border-gray-700" />
<hr class=" dark:border-gray-700" />
<div class=" space-y-3 pr-1.5
overflow-y-scroll max-h-80
">
<div class=" space-y-3 pr-1.5">
<div class="flex w-full justify-between mb-2">
<div class="flex w-full justify-between mb-2">
<div class=" self-center text-sm font-semibold">
<div class=" self-center text-sm font-semibold">
{$i18n.t('Default Prompt Suggestions')}
{$i18n.t('Default Prompt Suggestions')}
...
...
src/lib/components/chat/SettingsModal.svelte
View file @
967277f1
...
@@ -165,6 +165,32 @@
...
@@ -165,6 +165,32 @@
<div class=" self-center">{$i18n.t('Interface')}</div>
<div class=" self-center">{$i18n.t('Interface')}</div>
</button>
</button>
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'interface'
? 'bg-gray-200 dark:bg-gray-700'
: ' hover:bg-gray-300 dark:hover:bg-gray-800'}"
on:click={() => {
selectedTab = 'interface';
}}
>
<div class=" self-center mr-2">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
fill="currentColor"
class="w-4 h-4"
>
<path
fill-rule="evenodd"
d="M2 4.25A2.25 2.25 0 0 1 4.25 2h7.5A2.25 2.25 0 0 1 14 4.25v5.5A2.25 2.25 0 0 1 11.75 12h-1.312c.1.128.21.248.328.36a.75.75 0 0 1 .234.545v.345a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1-.75-.75v-.345a.75.75 0 0 1 .234-.545c.118-.111.228-.232.328-.36H4.25A2.25 2.25 0 0 1 2 9.75v-5.5Zm2.25-.75a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75h7.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 0 0-.75-.75h-7.5Z"
clip-rule="evenodd"
/>
</svg>
</div>
<div class=" self-center">{$i18n.t('Interface')}</div>
</button>
<button
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
'audio'
'audio'
...
@@ -298,7 +324,7 @@
...
@@ -298,7 +324,7 @@
<div class=" self-center">{$i18n.t('About')}</div>
<div class=" self-center">{$i18n.t('About')}</div>
</button>
</button>
</div>
</div>
<div class="flex-1 md:min-h-[2
5
rem]">
<div class="flex-1 md:min-h-[2
8
rem]">
{#if selectedTab === 'general'}
{#if selectedTab === 'general'}
<General
<General
{getModels}
{getModels}
...
...
src/lib/components/common/Modal.svelte
View file @
967277f1
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
} else if (size === 'sm') {
} else if (size === 'sm') {
return 'w-[30rem]';
return 'w-[30rem]';
} else if (size === 'md') {
} else if (size === 'md') {
return 'w-[44rem]';
} else {
return 'w-[48rem]';
return 'w-[48rem]';
} else {
return 'w-[50rem]';
}
}
};
};
...
...
src/lib/components/documents/Settings/General.svelte
View file @
967277f1
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
saveHandler();
saveHandler();
}}
}}
>
>
<div class=" space-y-2.5 pr-1.5 overflow-y-scroll max-h-[2
2
rem]">
<div class=" space-y-2.5 pr-1.5 overflow-y-scroll max-h-[2
8
rem]">
<div class="flex flex-col gap-0.5">
<div class="flex flex-col gap-0.5">
<div class=" mb-0.5 text-sm font-medium">{$i18n.t('General Settings')}</div>
<div class=" mb-0.5 text-sm font-medium">{$i18n.t('General Settings')}</div>
...
...
src/lib/components/documents/Settings/QueryParams.svelte
View file @
967277f1
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
saveHandler();
saveHandler();
}}
}}
>
>
<div class=" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
2
rem]">
<div class=" space-y-3 pr-1.5 overflow-y-scroll max-h-[2
5
rem]">
<div class=" ">
<div class=" ">
<div class=" text-sm font-medium">{$i18n.t('Query Params')}</div>
<div class=" text-sm font-medium">{$i18n.t('Query Params')}</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