feat(mobile): ios oauth & magic-link login (#8581)

Co-authored-by: EYHN <cneyhn@gmail.com>
This commit is contained in:
Cats Juice
2024-10-28 14:12:33 +08:00
committed by GitHub
parent d6ec4cc597
commit 06dda70319
59 changed files with 929 additions and 219 deletions

View File

@@ -1,6 +1,6 @@
import { Tooltip } from '@affine/component';
import { useCatchEventCallback } from '@affine/core/components/hooks/use-catch-event-hook';
import { popupWindow } from '@affine/core/utils';
import { UrlService } from '@affine/core/modules/url';
import { Unreachable } from '@affine/env/constant';
import { useI18n } from '@affine/i18n';
import {
@@ -9,6 +9,7 @@ import {
NewIcon,
ResetIcon,
} from '@blocksuite/icons/rc';
import { useService } from '@toeverything/infra';
import clsx from 'clsx';
import { useCallback, useMemo } from 'react';
@@ -186,6 +187,7 @@ export function AppUpdaterButton({
className,
style,
}: AddPageButtonProps) {
const urlService = useService(UrlService);
const handleClick = useCallback(() => {
if (updateReady) {
onQuitAndInstall();
@@ -197,7 +199,7 @@ export function AppUpdaterButton({
onDownloadUpdate();
}
} else {
popupWindow(
urlService.openPopupWindow(
`https://github.com/toeverything/AFFiNE/releases/tag/v${updateAvailable.version}`
);
}
@@ -213,6 +215,7 @@ export function AppUpdaterButton({
onQuitAndInstall,
autoDownload,
onDownloadUpdate,
urlService,
onOpenChangelog,
]);