chore: update deps (#14755)

This commit is contained in:
Daniel Dietzler
2024-12-18 15:19:48 +01:00
committed by GitHub
parent a03f4f5610
commit 6a855f6331
38 changed files with 4610 additions and 14215 deletions

View File

@@ -11,7 +11,6 @@
let { onSuccess }: Props = $props();
let errorMessage: string = $state('');
let success: string;
let password = $state('');
let passwordConfirm = $state('');
@@ -59,9 +58,6 @@
<p class="text-sm text-red-400">{errorMessage}</p>
{/if}
{#if success}
<p class="text-sm text-immich-primary">{success}</p>
{/if}
<div class="my-5 flex w-full">
<Button type="submit" size="lg" fullwidth>{$t('to_change_password')}</Button>
</div>

View File

@@ -28,8 +28,6 @@
onEditSuccess,
}: Props = $props();
let error: string;
let success: string;
let quotaSize = $state(user.quotaSizeInBytes ? convertFromBytes(user.quotaSizeInBytes, ByteUnit.GiB) : null);
const previousQutoa = user.quotaSizeInBytes;
@@ -149,14 +147,6 @@
</a>
</p>
</div>
{#if error}
<p class="ml-4 text-sm text-red-400">{error}</p>
{/if}
{#if success}
<p class="ml-4 text-sm text-immich-primary">{success}</p>
{/if}
</form>
{#snippet stickyBottom()}

View File

@@ -33,9 +33,9 @@
return;
}
if (oauth.isCallback(window.location)) {
if (oauth.isCallback(globalThis.location)) {
try {
await oauth.login(window.location);
await oauth.login(globalThis.location);
await onSuccess();
return;
} catch (error) {
@@ -46,9 +46,9 @@
}
try {
if ($featureFlags.oauthAutoLaunch && !oauth.isAutoLaunchDisabled(window.location)) {
if ($featureFlags.oauthAutoLaunch && !oauth.isAutoLaunchDisabled(globalThis.location)) {
await goto(`${AppRoute.AUTH_LOGIN}?autoLaunch=0`, { replaceState: true });
await oauth.authorize(window.location);
await oauth.authorize(globalThis.location);
return;
}
} catch (error) {
@@ -85,7 +85,7 @@
const handleOAuthLogin = async () => {
oauthLoading = true;
oauthError = '';
const success = await oauth.authorize(window.location);
const success = await oauth.authorize(globalThis.location);
if (!success) {
oauthLoading = false;
oauthError = $t('errors.unable_to_login_with_oauth');