mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 13:58:50 +08:00
feat: onboarding page (#5277)
This commit is contained in:
@@ -389,6 +389,12 @@ export const createConfiguration: (
|
||||
watch: true,
|
||||
},
|
||||
proxy: {
|
||||
'/api/worker/': {
|
||||
target: 'https://affine-worker.toeverything.workers.dev',
|
||||
pathRewrite: { '^/api/worker/': '/api/' },
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
'/api': 'http://localhost:3010',
|
||||
'/socket.io': {
|
||||
target: 'http://localhost:3010',
|
||||
|
||||
@@ -2,6 +2,7 @@ import {
|
||||
ChangeEmailPage,
|
||||
ChangePasswordPage,
|
||||
ConfirmChangeEmail,
|
||||
OnboardingPage,
|
||||
SetPasswordPage,
|
||||
SignInSuccessPage,
|
||||
SignUpPage,
|
||||
@@ -31,6 +32,7 @@ import { useCurrentUser } from '../hooks/affine/use-current-user';
|
||||
import { RouteLogic, useNavigateHelper } from '../hooks/use-navigate-helper';
|
||||
|
||||
const authTypeSchema = z.enum([
|
||||
'onboarding',
|
||||
'setPassword',
|
||||
'signIn',
|
||||
'changePassword',
|
||||
@@ -93,6 +95,8 @@ export const AuthPage = (): ReactElement | null => {
|
||||
}, [jumpToIndex]);
|
||||
|
||||
switch (authType) {
|
||||
case 'onboarding':
|
||||
return <OnboardingPage user={user} onOpenAffine={onOpenAffine} />;
|
||||
case 'signUp': {
|
||||
return (
|
||||
<SignUpPage
|
||||
|
||||
Reference in New Issue
Block a user