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
77928ae1
Commit
77928ae1
authored
May 11, 2024
by
Jun Siang Cheah
Browse files
Merge branch 'dev' of
https://github.com/open-webui/open-webui
into feat/web-search-toggle
parents
2660a6e5
9a957670
Changes
85
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
+20
-4
src/routes/(app)/+layout.svelte
src/routes/(app)/+layout.svelte
+1
-1
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+8
-0
src/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+1
-1
src/routes/auth/+page.svelte
src/routes/auth/+page.svelte
+2
-2
static/opensearch.xml
static/opensearch.xml
+8
-0
No files found.
src/routes/(app)/+layout.svelte
View file @
77928ae1
...
...
@@ -177,7 +177,7 @@
</script>
<div class=" hidden lg:flex fixed bottom-0 right-0 px-3 py-3 z-10">
<Tooltip content=
"
Help
"
placement="left">
<Tooltip content=
{$i18n.t('
Help
')}
placement="left">
<button
id="show-shortcuts-button"
bind:this={showShortcutsButtonElement}
...
...
src/routes/(app)/+page.svelte
View file @
77928ae1
...
...
@@ -136,6 +136,14 @@
selectedModels
=
[
''
];
}
if
($
page
.
url
.
searchParams
.
get
(
'q'
))
{
prompt
=
$
page
.
url
.
searchParams
.
get
(
'q'
)
??
''
;
if
(
prompt
)
{
await
tick
();
submitPrompt
(
prompt
);
}
}
selectedModels
=
selectedModels
.
map
((
modelId
)
=>
$
models
.
map
((
m
)
=>
m
.
id
).
includes
(
modelId
)
?
modelId
:
''
);
...
...
src/routes/(app)/admin/+page.svelte
View file @
77928ae1
...
...
@@ -140,7 +140,7 @@
</div>
</div>
<div class="px-
5
flex text-sm gap-2.5">
<div class="px-
6
flex text-sm gap-2.5">
<div class="py-3 border-b font-medium text-gray-100 cursor-pointer">
{$i18n.t('Overview')}
</div>
...
...
src/routes/auth/+page.svelte
View file @
77928ae1
...
...
@@ -60,7 +60,7 @@
await goto('/');
}
loaded = true;
if ($config?.trusted_header_auth ?? false) {
if
(
($config?.trusted_header_auth ?? false)
|| $config?.auth === false)
{
await signInHandler();
}
});
...
...
@@ -97,7 +97,7 @@
</div> -->
<div class="w-full sm:max-w-md px-10 min-h-screen flex flex-col text-center">
{#if $config?.trusted_header_auth ?? false}
{#if
(
$config?.trusted_header_auth ??
false) || $config?.auth ===
false}
<div class=" my-auto pb-10 w-full">
<div
class="flex items-center justify-center gap-3 text-xl sm:text-2xl text-center font-bold dark:text-gray-200"
...
...
static/opensearch.xml
0 → 100644
View file @
77928ae1
<OpenSearchDescription
xmlns=
"http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz=
"http://www.mozilla.org/2006/browser/search/"
>
<ShortName>
Open WebUI
</ShortName>
<Description>
Search Open WebUI
</Description>
<InputEncoding>
UTF-8
</InputEncoding>
<Image
width=
"16"
height=
"16"
type=
"image/x-icon"
>
http://localhost:5137/favicon.png
</Image>
<Url
type=
"text/html"
method=
"get"
template=
"http://localhost:5137/?q={searchTerms}"
/>
<moz:SearchForm>
http://localhost:5137
</moz:SearchForm>
</OpenSearchDescription>
\ No newline at end of file
Prev
1
2
3
4
5
Next
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