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
047c9fe8
"vscode:/vscode.git/clone" did not exist on "4d7f6661b2b57c3cf80bebd44a14189874052d6f"
Commit
047c9fe8
authored
Mar 29, 2024
by
Timothy J. Baek
Browse files
fix: styling
parent
50f6addd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
101 deletions
+111
-101
src/lib/components/common/Spinner.svelte
src/lib/components/common/Spinner.svelte
+19
-18
src/routes/auth/+page.svelte
src/routes/auth/+page.svelte
+92
-83
No files found.
src/lib/components/common/Spinner.svelte
View file @
047c9fe8
<script lang="ts">
<script lang="ts">
export let className: string = 'text-white';
export let className: string = '';
export let theme: 'blue' | 'white' | 'black' = 'white';
</script>
</script>
<div class="flex justify-center text-center {className}">
<div class="flex justify-center text-center {className}">
<svg
<svg class="size-5" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"
class="animate-spin -ml-1 mr-3 h-5 w-5 {theme === 'blue'
><style>
? 'text-sky-600'
.spinner_ajPY {
: theme === 'white'
transform-origin: center;
? 'text-white'
animation: spinner_AtaB 0.75s infinite linear;
: 'text-gray-600'} "
}
xmlns="http://www.w3.org/2000/svg"
@keyframes spinner_AtaB {
fill="none"
100% {
viewBox="0 0 24 24"
transform: rotate(360deg);
}
}
</style><path
d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"
opacity=".25"
/><path
d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"
class="spinner_ajPY"
/></svg
>
>
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" />
<path
class="opacity-75"
fill="currentColor"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
/>
</svg>
</div>
</div>
src/routes/auth/+page.svelte
View file @
047c9fe8
<script>
<script>
import { goto } from '$app/navigation';
import { goto } from '$app/navigation';
import { userSignIn, userSignUp } from '$lib/apis/auths';
import { userSignIn, userSignUp } from '$lib/apis/auths';
import Spinner from '$lib/components/common/Spinner.svelte';
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
import { WEBUI_NAME, config, user } from '$lib/stores';
import { WEBUI_NAME, config, user } from '$lib/stores';
import { onMount, getContext } from 'svelte';
import { onMount, getContext } from 'svelte';
...
@@ -93,13 +94,21 @@
...
@@ -93,13 +94,21 @@
</div> -->
</div> -->
<div class="w-full sm:max-w-lg px-4 min-h-screen flex flex-col">
<div class="w-full sm:max-w-lg px-4 min-h-screen flex flex-col">
{#if
(
$config?.trusted_header_auth ?? false
)
}
{#if $config?.trusted_header_auth ?? false}
<div class=" my-auto pb-10 w-full">
<div class=" my-auto pb-10 w-full">
<div class=" text-xl sm:text-2xl font-bold">
<div
class="flex items-center justify-center gap-3 text-xl sm:text-2xl text-center font-bold dark:text-gray-200"
>
<div>
{$i18n.t('Signing in')}
{$i18n.t('Signing in')}
{$i18n.t('to')}
{$i18n.t('to')}
{$WEBUI_NAME}
{$WEBUI_NAME}
</div>
</div>
<div>
<Spinner />
</div>
</div>
</div>
</div>
{:else}
{:else}
<div class=" my-auto pb-10 w-full">
<div class=" my-auto pb-10 w-full">
...
...
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