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

@@ -20,11 +20,11 @@
let loading = $state(true);
onMount(async () => {
if (oauth.isCallback(window.location)) {
if (oauth.isCallback(globalThis.location)) {
try {
loading = true;
user = await oauth.link(window.location);
user = await oauth.link(globalThis.location);
notificationController.show({
message: $t('linked_oauth_account'),
@@ -64,7 +64,7 @@
{#if user.oauthId}
<Button size="sm" onclick={() => handleUnlink()}>{$t('unlink_oauth')}</Button>
{:else}
<Button size="sm" onclick={() => oauth.authorize(window.location)}>{$t('link_to_oauth')}</Button>
<Button size="sm" onclick={() => oauth.authorize(globalThis.location)}>{$t('link_to_oauth')}</Button>
{/if}
{/if}
</div>

View File

@@ -64,10 +64,7 @@
for (const candidate of sharedWith) {
const existIndex = partners.findIndex((p) => candidate.id === p.user.id);
if (existIndex >= 0) {
partners[existIndex].sharedWithMe = true;
partners[existIndex].inTimeline = candidate.inTimeline ?? false;
} else {
if (existIndex === -1) {
partners = [
...partners,
{
@@ -77,6 +74,9 @@
inTimeline: candidate.inTimeline ?? false,
},
];
} else {
partners[existIndex].sharedWithMe = true;
partners[existIndex].inTimeline = candidate.inTimeline ?? false;
}
}
};

View File

@@ -43,7 +43,7 @@
let { keys = $bindable([]), sessions = $bindable([]) }: Props = $props();
let oauthOpen =
oauth.isCallback(window.location) ||
oauth.isCallback(globalThis.location) ||
$page.url.searchParams.get(QueryParameter.OPEN_SETTING) === OpenSettingQueryParameterValue.OAUTH;
</script>