create-croissant 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/apps/web/package.json +2 -0
- package/template/apps/web/src/components/app-sidebar.tsx +43 -28
- package/template/apps/web/src/components/login-form.tsx +96 -49
- package/template/apps/web/src/components/signup-form.tsx +150 -80
- package/template/apps/web/src/routeTree.gen.ts +21 -0
- package/template/apps/web/src/routes/__root.tsx +17 -12
- package/template/apps/web/src/routes/account.tsx +263 -0
- package/template/apps/web/src/routes/client-orpc-auth.tsx +10 -22
- package/template/apps/web/src/routes/client-orpc.tsx +211 -110
- package/template/apps/web/src/routes/dashboard.tsx +3 -3
- package/template/apps/web/src/routes/index.tsx +8 -3
- package/template/apps/web/src/routes/isr.tsx +2 -2
- package/template/apps/web/src/routes/login.tsx +1 -1
- package/template/apps/web/src/routes/signup.tsx +1 -1
- package/template/apps/web/src/routes/ssr-orpc-auth.tsx +2 -2
- package/template/apps/web/src/routes/ssr-orpc.tsx +178 -100
- package/template/package.json +3 -1
- package/template/packages/orpc/src/lib/planets.ts +79 -0
- package/template/packages/orpc/src/lib/router.ts +3 -72
- package/template/apps/web/node_modules/@better-auth/core/LICENSE.md +0 -20
- package/template/apps/web/node_modules/@better-auth/core/README.md +0 -17
- package/template/apps/web/node_modules/@better-auth/core/dist/api/index.d.mts +0 -278
- package/template/apps/web/node_modules/@better-auth/core/dist/api/index.mjs +0 -56
- package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/index.d.mts +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/index.mjs +0 -20
- package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/pure.index.d.mts +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/pure.index.mjs +0 -33
- package/template/apps/web/node_modules/@better-auth/core/dist/context/endpoint-context.d.mts +0 -18
- package/template/apps/web/node_modules/@better-auth/core/dist/context/endpoint-context.mjs +0 -29
- package/template/apps/web/node_modules/@better-auth/core/dist/context/global.d.mts +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/context/global.mjs +0 -36
- package/template/apps/web/node_modules/@better-auth/core/dist/context/index.d.mts +0 -5
- package/template/apps/web/node_modules/@better-auth/core/dist/context/index.mjs +0 -5
- package/template/apps/web/node_modules/@better-auth/core/dist/context/request-state.d.mts +0 -27
- package/template/apps/web/node_modules/@better-auth/core/dist/context/request-state.mjs +0 -47
- package/template/apps/web/node_modules/@better-auth/core/dist/context/transaction.d.mts +0 -24
- package/template/apps/web/node_modules/@better-auth/core/dist/context/transaction.mjs +0 -93
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/factory.d.mts +0 -17
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/factory.mjs +0 -754
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-field-name.d.mts +0 -18
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-field-name.mjs +0 -36
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-model-name.d.mts +0 -12
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-model-name.mjs +0 -30
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.d.mts +0 -26
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.mjs +0 -37
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-name.d.mts +0 -18
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-name.mjs +0 -31
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-id-field.d.mts +0 -36
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-id-field.mjs +0 -64
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-model-name.d.mts +0 -12
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-model-name.mjs +0 -21
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/index.d.mts +0 -525
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/index.mjs +0 -24
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/types.d.mts +0 -105
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/utils.d.mts +0 -7
- package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/utils.mjs +0 -37
- package/template/apps/web/node_modules/@better-auth/core/dist/db/get-tables.d.mts +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/db/get-tables.mjs +0 -265
- package/template/apps/web/node_modules/@better-auth/core/dist/db/index.d.mts +0 -10
- package/template/apps/web/node_modules/@better-auth/core/dist/db/index.mjs +0 -8
- package/template/apps/web/node_modules/@better-auth/core/dist/db/plugin.d.mts +0 -12
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/account.d.mts +0 -28
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/account.mjs +0 -17
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/rate-limit.d.mts +0 -18
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/rate-limit.mjs +0 -9
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/session.d.mts +0 -23
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/session.mjs +0 -12
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/shared.d.mts +0 -10
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/shared.mjs +0 -9
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/user.d.mts +0 -22
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/user.mjs +0 -11
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/verification.d.mts +0 -21
- package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/verification.mjs +0 -10
- package/template/apps/web/node_modules/@better-auth/core/dist/db/type.d.mts +0 -167
- package/template/apps/web/node_modules/@better-auth/core/dist/env/color-depth.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/env/color-depth.mjs +0 -86
- package/template/apps/web/node_modules/@better-auth/core/dist/env/env-impl.d.mts +0 -32
- package/template/apps/web/node_modules/@better-auth/core/dist/env/env-impl.mjs +0 -81
- package/template/apps/web/node_modules/@better-auth/core/dist/env/index.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/env/index.mjs +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/env/logger.d.mts +0 -48
- package/template/apps/web/node_modules/@better-auth/core/dist/env/logger.mjs +0 -79
- package/template/apps/web/node_modules/@better-auth/core/dist/error/codes.d.mts +0 -68
- package/template/apps/web/node_modules/@better-auth/core/dist/error/codes.mjs +0 -54
- package/template/apps/web/node_modules/@better-auth/core/dist/error/index.d.mts +0 -19
- package/template/apps/web/node_modules/@better-auth/core/dist/error/index.mjs +0 -27
- package/template/apps/web/node_modules/@better-auth/core/dist/index.d.mts +0 -9
- package/template/apps/web/node_modules/@better-auth/core/dist/index.mjs +0 -1
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/api.mjs +0 -12
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/attributes.d.mts +0 -11
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/attributes.mjs +0 -10
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/index.d.mts +0 -3
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/index.mjs +0 -3
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/noop.mjs +0 -42
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/pure.index.d.mts +0 -7
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/pure.index.mjs +0 -7
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/tracer.d.mts +0 -13
- package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/tracer.mjs +0 -53
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/client-credentials-token.d.mts +0 -56
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/client-credentials-token.mjs +0 -64
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/create-authorization-url.d.mts +0 -44
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/create-authorization-url.mjs +0 -41
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/index.d.mts +0 -8
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/index.mjs +0 -7
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/oauth-provider.d.mts +0 -192
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/refresh-access-token.d.mts +0 -54
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/refresh-access-token.mjs +0 -73
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/utils.d.mts +0 -16
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/utils.mjs +0 -37
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/validate-authorization-code.d.mts +0 -85
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/validate-authorization-code.mjs +0 -79
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/verify.d.mts +0 -42
- package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/verify.mjs +0 -92
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/apple.d.mts +0 -126
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/apple.mjs +0 -107
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/atlassian.d.mts +0 -70
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/atlassian.mjs +0 -80
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/cognito.d.mts +0 -85
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/cognito.mjs +0 -162
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/discord.d.mts +0 -124
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/discord.mjs +0 -62
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/dropbox.d.mts +0 -69
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/dropbox.mjs +0 -72
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/facebook.d.mts +0 -79
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/facebook.mjs +0 -124
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/figma.d.mts +0 -61
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/figma.mjs +0 -83
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/github.d.mts +0 -102
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/github.mjs +0 -92
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/gitlab.d.mts +0 -123
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/gitlab.mjs +0 -79
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/google.d.mts +0 -97
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/google.mjs +0 -109
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/huggingface.d.mts +0 -83
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/huggingface.mjs +0 -73
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/index.d.mts +0 -1834
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/index.mjs +0 -78
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kakao.d.mts +0 -161
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kakao.mjs +0 -70
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kick.d.mts +0 -73
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kick.mjs +0 -68
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/line.d.mts +0 -105
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/line.mjs +0 -110
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linear.d.mts +0 -68
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linear.mjs +0 -85
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linkedin.d.mts +0 -67
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linkedin.mjs +0 -73
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/microsoft-entra-id.d.mts +0 -174
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/microsoft-entra-id.mjs +0 -140
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/naver.d.mts +0 -92
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/naver.mjs +0 -65
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/notion.d.mts +0 -64
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/notion.mjs +0 -72
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paybin.d.mts +0 -71
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paybin.mjs +0 -81
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paypal.d.mts +0 -129
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paypal.mjs +0 -140
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/polar.d.mts +0 -74
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/polar.mjs +0 -71
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/railway.d.mts +0 -65
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/railway.mjs +0 -74
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/reddit.d.mts +0 -62
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/reddit.mjs +0 -80
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/roblox.d.mts +0 -70
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/roblox.mjs +0 -57
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/salesforce.d.mts +0 -79
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/salesforce.mjs +0 -87
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/slack.d.mts +0 -83
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/slack.mjs +0 -66
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/spotify.d.mts +0 -63
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/spotify.mjs +0 -69
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/tiktok.d.mts +0 -168
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/tiktok.mjs +0 -60
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitch.d.mts +0 -79
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitch.mjs +0 -75
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitter.d.mts +0 -126
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitter.mjs +0 -85
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vercel.d.mts +0 -62
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vercel.mjs +0 -58
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vk.d.mts +0 -70
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vk.mjs +0 -81
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/wechat.d.mts +0 -113
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/wechat.mjs +0 -81
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/zoom.d.mts +0 -163
- package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/zoom.mjs +0 -69
- package/template/apps/web/node_modules/@better-auth/core/dist/types/context.d.mts +0 -277
- package/template/apps/web/node_modules/@better-auth/core/dist/types/cookie.d.mts +0 -15
- package/template/apps/web/node_modules/@better-auth/core/dist/types/helper.d.mts +0 -10
- package/template/apps/web/node_modules/@better-auth/core/dist/types/index.d.mts +0 -9
- package/template/apps/web/node_modules/@better-auth/core/dist/types/init-options.d.mts +0 -1358
- package/template/apps/web/node_modules/@better-auth/core/dist/types/plugin-client.d.mts +0 -113
- package/template/apps/web/node_modules/@better-auth/core/dist/types/plugin.d.mts +0 -124
- package/template/apps/web/node_modules/@better-auth/core/dist/types/secret.d.mts +0 -11
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/async.d.mts +0 -22
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/async.mjs +0 -32
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/db.d.mts +0 -9
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/db.mjs +0 -15
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/deprecate.d.mts +0 -9
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/deprecate.mjs +0 -16
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/error-codes.d.mts +0 -13
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/error-codes.mjs +0 -10
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/fetch-metadata.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/fetch-metadata.mjs +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/host.d.mts +0 -147
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/host.mjs +0 -291
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/id.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/id.mjs +0 -7
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/ip.d.mts +0 -54
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/ip.mjs +0 -116
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/is-api-error.d.mts +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/is-api-error.mjs +0 -8
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/json.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/json.mjs +0 -41
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/string.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/string.mjs +0 -6
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/url.d.mts +0 -20
- package/template/apps/web/node_modules/@better-auth/core/dist/utils/url.mjs +0 -31
- package/template/apps/web/node_modules/@better-auth/core/package.json +0 -193
- package/template/apps/web/node_modules/@better-auth/core/src/api/index.ts +0 -140
- package/template/apps/web/node_modules/@better-auth/core/src/async_hooks/index.ts +0 -40
- package/template/apps/web/node_modules/@better-auth/core/src/async_hooks/pure.index.ts +0 -46
- package/template/apps/web/node_modules/@better-auth/core/src/context/endpoint-context.ts +0 -50
- package/template/apps/web/node_modules/@better-auth/core/src/context/global.ts +0 -57
- package/template/apps/web/node_modules/@better-auth/core/src/context/index.ts +0 -23
- package/template/apps/web/node_modules/@better-auth/core/src/context/request-state.ts +0 -91
- package/template/apps/web/node_modules/@better-auth/core/src/context/transaction.ts +0 -136
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/factory.ts +0 -1440
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-default-field-name.ts +0 -59
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-default-model-name.ts +0 -51
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-field-attributes.ts +0 -62
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-field-name.ts +0 -43
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-id-field.ts +0 -150
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-model-name.ts +0 -36
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/index.ts +0 -567
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/types.ts +0 -132
- package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/utils.ts +0 -61
- package/template/apps/web/node_modules/@better-auth/core/src/db/get-tables.ts +0 -296
- package/template/apps/web/node_modules/@better-auth/core/src/db/index.ts +0 -43
- package/template/apps/web/node_modules/@better-auth/core/src/db/plugin.ts +0 -11
- package/template/apps/web/node_modules/@better-auth/core/src/db/schema/account.ts +0 -47
- package/template/apps/web/node_modules/@better-auth/core/src/db/schema/rate-limit.ts +0 -36
- package/template/apps/web/node_modules/@better-auth/core/src/db/schema/session.ts +0 -29
- package/template/apps/web/node_modules/@better-auth/core/src/db/schema/shared.ts +0 -7
- package/template/apps/web/node_modules/@better-auth/core/src/db/schema/user.ts +0 -28
- package/template/apps/web/node_modules/@better-auth/core/src/db/schema/verification.ts +0 -28
- package/template/apps/web/node_modules/@better-auth/core/src/db/type.ts +0 -333
- package/template/apps/web/node_modules/@better-auth/core/src/env/color-depth.ts +0 -172
- package/template/apps/web/node_modules/@better-auth/core/src/env/env-impl.ts +0 -124
- package/template/apps/web/node_modules/@better-auth/core/src/env/index.ts +0 -23
- package/template/apps/web/node_modules/@better-auth/core/src/env/logger.ts +0 -145
- package/template/apps/web/node_modules/@better-auth/core/src/error/codes.ts +0 -71
- package/template/apps/web/node_modules/@better-auth/core/src/error/index.ts +0 -35
- package/template/apps/web/node_modules/@better-auth/core/src/index.ts +0 -1
- package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/api.ts +0 -17
- package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/attributes.ts +0 -22
- package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/index.ts +0 -2
- package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/noop.ts +0 -74
- package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/pure.index.ts +0 -31
- package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/tracer.ts +0 -95
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/client-credentials-token.ts +0 -126
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/create-authorization-url.ts +0 -89
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/index.ts +0 -33
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/oauth-provider.ts +0 -222
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/refresh-access-token.ts +0 -157
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/utils.ts +0 -51
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/validate-authorization-code.ts +0 -180
- package/template/apps/web/node_modules/@better-auth/core/src/oauth2/verify.ts +0 -221
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/apple.ts +0 -231
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/atlassian.ts +0 -133
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/cognito.ts +0 -281
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/discord.ts +0 -170
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/dropbox.ts +0 -112
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/facebook.ts +0 -215
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/figma.ts +0 -118
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/github.ts +0 -184
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/gitlab.ts +0 -155
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/google.ts +0 -204
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/huggingface.ts +0 -119
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/index.ts +0 -132
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/kakao.ts +0 -179
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/kick.ts +0 -109
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/line.ts +0 -169
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/linear.ts +0 -121
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/linkedin.ts +0 -110
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/microsoft-entra-id.ts +0 -352
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/naver.ts +0 -113
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/notion.ts +0 -108
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/paybin.ts +0 -118
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/paypal.ts +0 -263
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/polar.ts +0 -111
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/railway.ts +0 -100
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/reddit.ts +0 -122
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/roblox.ts +0 -112
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/salesforce.ts +0 -159
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/slack.ts +0 -112
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/spotify.ts +0 -94
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/tiktok.ts +0 -211
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/twitch.ts +0 -112
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/twitter.ts +0 -199
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/vercel.ts +0 -87
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/vk.ts +0 -125
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/wechat.ts +0 -213
- package/template/apps/web/node_modules/@better-auth/core/src/social-providers/zoom.ts +0 -230
- package/template/apps/web/node_modules/@better-auth/core/src/types/context.ts +0 -415
- package/template/apps/web/node_modules/@better-auth/core/src/types/cookie.ts +0 -10
- package/template/apps/web/node_modules/@better-auth/core/src/types/helper.ts +0 -27
- package/template/apps/web/node_modules/@better-auth/core/src/types/index.ts +0 -40
- package/template/apps/web/node_modules/@better-auth/core/src/types/init-options.ts +0 -1610
- package/template/apps/web/node_modules/@better-auth/core/src/types/plugin-client.ts +0 -129
- package/template/apps/web/node_modules/@better-auth/core/src/types/plugin.ts +0 -163
- package/template/apps/web/node_modules/@better-auth/core/src/types/secret.ts +0 -8
- package/template/apps/web/node_modules/@better-auth/core/src/utils/async.ts +0 -53
- package/template/apps/web/node_modules/@better-auth/core/src/utils/db.ts +0 -20
- package/template/apps/web/node_modules/@better-auth/core/src/utils/deprecate.ts +0 -21
- package/template/apps/web/node_modules/@better-auth/core/src/utils/error-codes.ts +0 -68
- package/template/apps/web/node_modules/@better-auth/core/src/utils/fetch-metadata.ts +0 -3
- package/template/apps/web/node_modules/@better-auth/core/src/utils/host.ts +0 -401
- package/template/apps/web/node_modules/@better-auth/core/src/utils/id.ts +0 -5
- package/template/apps/web/node_modules/@better-auth/core/src/utils/ip.ts +0 -211
- package/template/apps/web/node_modules/@better-auth/core/src/utils/is-api-error.ts +0 -10
- package/template/apps/web/node_modules/@better-auth/core/src/utils/json.ts +0 -56
- package/template/apps/web/node_modules/@better-auth/core/src/utils/string.ts +0 -3
- package/template/apps/web/node_modules/@better-auth/core/src/utils/url.ts +0 -43
- package/template/apps/web/node_modules/@better-auth/utils/README.md +0 -384
- package/template/apps/web/node_modules/@better-auth/utils/dist/base32.cjs +0 -104
- package/template/apps/web/node_modules/@better-auth/utils/dist/base32.d.cts +0 -44
- package/template/apps/web/node_modules/@better-auth/utils/dist/base32.d.mts +0 -44
- package/template/apps/web/node_modules/@better-auth/utils/dist/base32.d.ts +0 -44
- package/template/apps/web/node_modules/@better-auth/utils/dist/base32.mjs +0 -101
- package/template/apps/web/node_modules/@better-auth/utils/dist/base64.cjs +0 -80
- package/template/apps/web/node_modules/@better-auth/utils/dist/base64.d.cts +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/base64.d.mts +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/base64.d.ts +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/base64.mjs +0 -77
- package/template/apps/web/node_modules/@better-auth/utils/dist/binary.cjs +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/binary.d.cts +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/binary.d.mts +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/binary.d.ts +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/binary.mjs +0 -14
- package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.cjs +0 -90
- package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.d.cts +0 -19
- package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.d.mts +0 -19
- package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.d.ts +0 -19
- package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.mjs +0 -88
- package/template/apps/web/node_modules/@better-auth/utils/dist/hash.cjs +0 -31
- package/template/apps/web/node_modules/@better-auth/utils/dist/hash.d.cts +0 -7
- package/template/apps/web/node_modules/@better-auth/utils/dist/hash.d.mts +0 -7
- package/template/apps/web/node_modules/@better-auth/utils/dist/hash.d.ts +0 -7
- package/template/apps/web/node_modules/@better-auth/utils/dist/hash.mjs +0 -29
- package/template/apps/web/node_modules/@better-auth/utils/dist/hex.cjs +0 -40
- package/template/apps/web/node_modules/@better-auth/utils/dist/hex.d.cts +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/hex.d.mts +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/hex.d.ts +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/hex.mjs +0 -38
- package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.cjs +0 -58
- package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.d.cts +0 -9
- package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.d.mts +0 -9
- package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.d.ts +0 -9
- package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.mjs +0 -56
- package/template/apps/web/node_modules/@better-auth/utils/dist/index.cjs +0 -10
- package/template/apps/web/node_modules/@better-auth/utils/dist/index.d.cts +0 -3
- package/template/apps/web/node_modules/@better-auth/utils/dist/index.d.mts +0 -3
- package/template/apps/web/node_modules/@better-auth/utils/dist/index.d.ts +0 -3
- package/template/apps/web/node_modules/@better-auth/utils/dist/index.mjs +0 -8
- package/template/apps/web/node_modules/@better-auth/utils/dist/otp.cjs +0 -90
- package/template/apps/web/node_modules/@better-auth/utils/dist/otp.d.cts +0 -13
- package/template/apps/web/node_modules/@better-auth/utils/dist/otp.d.mts +0 -13
- package/template/apps/web/node_modules/@better-auth/utils/dist/otp.d.ts +0 -13
- package/template/apps/web/node_modules/@better-auth/utils/dist/otp.mjs +0 -88
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.cjs +0 -36
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.d.cts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.d.ts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.mjs +0 -33
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.cjs +0 -47
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.d.cts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.d.ts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.mjs +0 -44
- package/template/apps/web/node_modules/@better-auth/utils/dist/random.cjs +0 -55
- package/template/apps/web/node_modules/@better-auth/utils/dist/random.d.cts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/random.d.mts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/random.d.ts +0 -4
- package/template/apps/web/node_modules/@better-auth/utils/dist/random.mjs +0 -53
- package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.cjs +0 -76
- package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.d.cts +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.d.mts +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.d.ts +0 -16
- package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.mjs +0 -74
- package/template/apps/web/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.cts +0 -22
- package/template/apps/web/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.mts +0 -22
- package/template/apps/web/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.ts +0 -22
- package/template/apps/web/node_modules/@better-auth/utils/package.json +0 -95
- package/template/apps/web/node_modules/better-call/LICENSE +0 -21
- package/template/apps/web/node_modules/better-call/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/template/apps/web/node_modules/better-call/dist/adapters/node/request.cjs +0 -181
- package/template/apps/web/node_modules/better-call/dist/adapters/node/request.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/adapters/node/request.d.cts +0 -16
- package/template/apps/web/node_modules/better-call/dist/adapters/node/request.d.mts +0 -16
- package/template/apps/web/node_modules/better-call/dist/adapters/node/request.mjs +0 -178
- package/template/apps/web/node_modules/better-call/dist/adapters/node/request.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/client.cjs +0 -23
- package/template/apps/web/node_modules/better-call/dist/client.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/client.d.cts +0 -53
- package/template/apps/web/node_modules/better-call/dist/client.d.mts +0 -53
- package/template/apps/web/node_modules/better-call/dist/client.mjs +0 -14
- package/template/apps/web/node_modules/better-call/dist/client.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/context.cjs +0 -103
- package/template/apps/web/node_modules/better-call/dist/context.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/context.d.cts +0 -341
- package/template/apps/web/node_modules/better-call/dist/context.d.mts +0 -341
- package/template/apps/web/node_modules/better-call/dist/context.mjs +0 -103
- package/template/apps/web/node_modules/better-call/dist/context.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/cookies.cjs +0 -87
- package/template/apps/web/node_modules/better-call/dist/cookies.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/cookies.d.cts +0 -103
- package/template/apps/web/node_modules/better-call/dist/cookies.d.mts +0 -103
- package/template/apps/web/node_modules/better-call/dist/cookies.mjs +0 -84
- package/template/apps/web/node_modules/better-call/dist/cookies.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/crypto.cjs +0 -39
- package/template/apps/web/node_modules/better-call/dist/crypto.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/crypto.mjs +0 -36
- package/template/apps/web/node_modules/better-call/dist/crypto.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/endpoint.cjs +0 -70
- package/template/apps/web/node_modules/better-call/dist/endpoint.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/endpoint.d.cts +0 -475
- package/template/apps/web/node_modules/better-call/dist/endpoint.d.mts +0 -475
- package/template/apps/web/node_modules/better-call/dist/endpoint.mjs +0 -70
- package/template/apps/web/node_modules/better-call/dist/endpoint.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/error.cjs +0 -141
- package/template/apps/web/node_modules/better-call/dist/error.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/error.d.cts +0 -103
- package/template/apps/web/node_modules/better-call/dist/error.d.mts +0 -103
- package/template/apps/web/node_modules/better-call/dist/error.mjs +0 -133
- package/template/apps/web/node_modules/better-call/dist/error.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/helper.d.cts +0 -12
- package/template/apps/web/node_modules/better-call/dist/helper.d.mts +0 -12
- package/template/apps/web/node_modules/better-call/dist/index.cjs +0 -28
- package/template/apps/web/node_modules/better-call/dist/index.d.cts +0 -11
- package/template/apps/web/node_modules/better-call/dist/index.d.mts +0 -11
- package/template/apps/web/node_modules/better-call/dist/index.mjs +0 -10
- package/template/apps/web/node_modules/better-call/dist/middleware.cjs +0 -52
- package/template/apps/web/node_modules/better-call/dist/middleware.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/middleware.d.cts +0 -123
- package/template/apps/web/node_modules/better-call/dist/middleware.d.mts +0 -123
- package/template/apps/web/node_modules/better-call/dist/middleware.mjs +0 -52
- package/template/apps/web/node_modules/better-call/dist/middleware.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/node.cjs +0 -18
- package/template/apps/web/node_modules/better-call/dist/node.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/node.d.cts +0 -9
- package/template/apps/web/node_modules/better-call/dist/node.d.mts +0 -9
- package/template/apps/web/node_modules/better-call/dist/node.mjs +0 -15
- package/template/apps/web/node_modules/better-call/dist/node.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/openapi.cjs +0 -191
- package/template/apps/web/node_modules/better-call/dist/openapi.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/openapi.d.cts +0 -113
- package/template/apps/web/node_modules/better-call/dist/openapi.d.mts +0 -113
- package/template/apps/web/node_modules/better-call/dist/openapi.mjs +0 -189
- package/template/apps/web/node_modules/better-call/dist/openapi.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/router.cjs +0 -118
- package/template/apps/web/node_modules/better-call/dist/router.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/router.d.cts +0 -103
- package/template/apps/web/node_modules/better-call/dist/router.d.mts +0 -103
- package/template/apps/web/node_modules/better-call/dist/router.mjs +0 -117
- package/template/apps/web/node_modules/better-call/dist/router.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/standard-schema.d.cts +0 -59
- package/template/apps/web/node_modules/better-call/dist/standard-schema.d.mts +0 -59
- package/template/apps/web/node_modules/better-call/dist/to-response.cjs +0 -153
- package/template/apps/web/node_modules/better-call/dist/to-response.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/to-response.d.cts +0 -12
- package/template/apps/web/node_modules/better-call/dist/to-response.d.mts +0 -12
- package/template/apps/web/node_modules/better-call/dist/to-response.mjs +0 -153
- package/template/apps/web/node_modules/better-call/dist/to-response.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/utils.cjs +0 -86
- package/template/apps/web/node_modules/better-call/dist/utils.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/utils.mjs +0 -82
- package/template/apps/web/node_modules/better-call/dist/utils.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/validator.cjs +0 -58
- package/template/apps/web/node_modules/better-call/dist/validator.cjs.map +0 -1
- package/template/apps/web/node_modules/better-call/dist/validator.mjs +0 -57
- package/template/apps/web/node_modules/better-call/dist/validator.mjs.map +0 -1
- package/template/apps/web/node_modules/better-call/package.json +0 -96
- package/template/apps/web/node_modules/set-cookie-parser/LICENSE +0 -21
- package/template/apps/web/node_modules/set-cookie-parser/README.md +0 -169
- package/template/apps/web/node_modules/set-cookie-parser/dist/.eslintrc.cjs +0 -16
- package/template/apps/web/node_modules/set-cookie-parser/dist/set-cookie.cjs +0 -260
- package/template/apps/web/node_modules/set-cookie-parser/lib/set-cookie.d.ts +0 -119
- package/template/apps/web/node_modules/set-cookie-parser/lib/set-cookie.js +0 -265
- package/template/apps/web/node_modules/set-cookie-parser/package.json +0 -61
package/package.json
CHANGED
|
@@ -20,10 +20,12 @@
|
|
|
20
20
|
"@orpc/server": "^1.14.0",
|
|
21
21
|
"@orpc/tanstack-query": "^1.14.0",
|
|
22
22
|
"@tailwindcss/vite": "^4.2.4",
|
|
23
|
+
"@tanstack/react-form": "^1.29.1",
|
|
23
24
|
"@tanstack/react-query": "^5.99.2",
|
|
24
25
|
"@tanstack/react-router": "^1.132.0",
|
|
25
26
|
"@tanstack/react-start": "^1.132.0",
|
|
26
27
|
"@tanstack/router-plugin": "^1.132.0",
|
|
28
|
+
"@tanstack/zod-form-adapter": "^0.42.1",
|
|
27
29
|
"@workspace/auth": "*",
|
|
28
30
|
"@workspace/orpc": "*",
|
|
29
31
|
"@workspace/ui": "*",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { Link } from "@tanstack/react-router"
|
|
3
|
-
import { LogOut, User } from "lucide-react"
|
|
3
|
+
import { LogOut, Settings, User } from "lucide-react"
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
Sidebar,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
SidebarRail,
|
|
17
17
|
} from "@workspace/ui/components/sidebar"
|
|
18
18
|
import { Avatar, AvatarFallback, AvatarImage } from "@workspace/ui/components/avatar"
|
|
19
|
-
import { authClient } from "
|
|
19
|
+
import { authClient } from "@/lib/auth-client"
|
|
20
20
|
|
|
21
21
|
// This is sample data.
|
|
22
22
|
const data = {
|
|
@@ -50,7 +50,7 @@ const data = {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
|
53
|
-
const [user, setUser] = React.useState<
|
|
53
|
+
const [user, setUser] = React.useState<typeof authClient.$Infer.Session.user | null>(null)
|
|
54
54
|
|
|
55
55
|
React.useEffect(() => {
|
|
56
56
|
const checkSession = async () => {
|
|
@@ -95,32 +95,47 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
|
|
|
95
95
|
<SidebarFooter>
|
|
96
96
|
<SidebarMenu>
|
|
97
97
|
<SidebarMenuItem>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<Avatar className="h-8 w-8 rounded-lg">
|
|
104
|
-
<AvatarImage src={user.image || ""} alt={user.name} />
|
|
105
|
-
<AvatarFallback className="rounded-lg">
|
|
106
|
-
{user.name?.charAt(0) || "U"}
|
|
107
|
-
</AvatarFallback>
|
|
108
|
-
</Avatar>
|
|
109
|
-
<div className="grid flex-1 text-left text-sm leading-tight">
|
|
110
|
-
<span className="truncate font-semibold">{user.name}</span>
|
|
111
|
-
<span className="truncate text-xs">{user.email}</span>
|
|
112
|
-
</div>
|
|
113
|
-
<button
|
|
114
|
-
onClick={async () => {
|
|
115
|
-
await authClient.signOut()
|
|
116
|
-
window.location.reload()
|
|
117
|
-
}}
|
|
118
|
-
className="ml-auto"
|
|
98
|
+
{user ? (
|
|
99
|
+
<SidebarMenuButton
|
|
100
|
+
size="lg"
|
|
101
|
+
render={<div />}
|
|
102
|
+
className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
|
|
119
103
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
104
|
+
<div className="flex items-center gap-2 w-full">
|
|
105
|
+
<Avatar className="h-8 w-8 rounded-lg">
|
|
106
|
+
<AvatarImage src={user.image || ""} alt={user.name} />
|
|
107
|
+
<AvatarFallback className="rounded-lg">
|
|
108
|
+
{user.name.charAt(0) || "U"}
|
|
109
|
+
</AvatarFallback>
|
|
110
|
+
</Avatar>
|
|
111
|
+
<div className="grid flex-1 text-left text-sm leading-tight">
|
|
112
|
+
<span className="truncate font-semibold">{user.name}</span>
|
|
113
|
+
<span className="truncate text-xs">{user.email}</span>
|
|
114
|
+
</div>
|
|
115
|
+
<div className="flex items-center gap-1 ml-auto">
|
|
116
|
+
<Link
|
|
117
|
+
to="/account"
|
|
118
|
+
className="p-1 rounded hover:bg-sidebar-accent-foreground/10"
|
|
119
|
+
title="Account Settings"
|
|
120
|
+
>
|
|
121
|
+
<Settings className="h-4 w-4" />
|
|
122
|
+
</Link>
|
|
123
|
+
<button
|
|
124
|
+
onClick={async (e) => {
|
|
125
|
+
e.preventDefault()
|
|
126
|
+
e.stopPropagation()
|
|
127
|
+
await authClient.signOut()
|
|
128
|
+
window.location.reload()
|
|
129
|
+
}}
|
|
130
|
+
className="p-1 rounded hover:bg-sidebar-accent-foreground/10"
|
|
131
|
+
title="Sign Out"
|
|
132
|
+
>
|
|
133
|
+
<LogOut className="h-4 w-4" />
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</SidebarMenuButton>
|
|
138
|
+
) : (
|
|
124
139
|
<SidebarMenuButton
|
|
125
140
|
render={
|
|
126
141
|
<Link to="/login" className="flex items-center gap-2" />
|
|
@@ -10,37 +10,51 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
Field,
|
|
12
12
|
FieldDescription,
|
|
13
|
+
FieldError,
|
|
13
14
|
FieldGroup,
|
|
14
15
|
FieldLabel,
|
|
15
16
|
} from "@workspace/ui/components/field"
|
|
16
17
|
import { Input } from "@workspace/ui/components/input"
|
|
17
18
|
import { useState } from "react"
|
|
18
19
|
import { Link } from "@tanstack/react-router"
|
|
19
|
-
import {
|
|
20
|
+
import { useForm } from "@tanstack/react-form"
|
|
21
|
+
import { z } from "zod"
|
|
22
|
+
import { authClient } from "@/lib/auth-client"
|
|
23
|
+
|
|
24
|
+
const loginSchema = z.object({
|
|
25
|
+
email: z.string().email("Invalid email address"),
|
|
26
|
+
password: z.string().min(1, "Password is required"),
|
|
27
|
+
})
|
|
20
28
|
|
|
21
29
|
export function LoginForm({
|
|
22
30
|
className,
|
|
23
31
|
...props
|
|
24
32
|
}: React.ComponentProps<"div">) {
|
|
25
|
-
const [email, setEmail] = useState("")
|
|
26
|
-
const [password, setPassword] = useState("")
|
|
27
33
|
const [loading, setLoading] = useState(false)
|
|
28
34
|
const [error, setError] = useState<string | null>(null)
|
|
29
35
|
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
setError(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
const form = useForm({
|
|
37
|
+
defaultValues: {
|
|
38
|
+
email: "",
|
|
39
|
+
password: "",
|
|
40
|
+
},
|
|
41
|
+
validators: {
|
|
42
|
+
onChange: loginSchema,
|
|
43
|
+
},
|
|
44
|
+
onSubmit: async ({ value }) => {
|
|
45
|
+
setLoading(true)
|
|
46
|
+
setError(null)
|
|
47
|
+
const { error: signInError } = await authClient.signIn.email({
|
|
48
|
+
email: value.email,
|
|
49
|
+
password: value.password,
|
|
50
|
+
callbackURL: "/dashboard",
|
|
51
|
+
})
|
|
52
|
+
if (signInError) {
|
|
53
|
+
setError(signInError.message || "Failed to sign in")
|
|
54
|
+
}
|
|
55
|
+
setLoading(false)
|
|
56
|
+
},
|
|
57
|
+
})
|
|
44
58
|
|
|
45
59
|
return (
|
|
46
60
|
<div className={cn("flex flex-col gap-6", className)} {...props}>
|
|
@@ -52,46 +66,79 @@ export function LoginForm({
|
|
|
52
66
|
</CardDescription>
|
|
53
67
|
</CardHeader>
|
|
54
68
|
<CardContent>
|
|
55
|
-
<form
|
|
69
|
+
<form
|
|
70
|
+
onSubmit={(e) => {
|
|
71
|
+
e.preventDefault()
|
|
72
|
+
e.stopPropagation()
|
|
73
|
+
form.handleSubmit()
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
56
76
|
<FieldGroup>
|
|
57
77
|
{error && (
|
|
58
78
|
<div className="rounded bg-red-100 p-2 text-sm text-red-600">
|
|
59
79
|
{error}
|
|
60
80
|
</div>
|
|
61
81
|
)}
|
|
82
|
+
<form.Field
|
|
83
|
+
name="email"
|
|
84
|
+
children={(field) => {
|
|
85
|
+
const isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > 0
|
|
86
|
+
return (
|
|
87
|
+
<Field data-invalid={isInvalid}>
|
|
88
|
+
<FieldLabel htmlFor={field.name}>Email</FieldLabel>
|
|
89
|
+
<Input
|
|
90
|
+
id={field.name}
|
|
91
|
+
name={field.name}
|
|
92
|
+
type="email"
|
|
93
|
+
placeholder="m@example.com"
|
|
94
|
+
value={field.state.value}
|
|
95
|
+
onBlur={field.handleBlur}
|
|
96
|
+
onChange={(e) => field.handleChange(e.target.value)}
|
|
97
|
+
required
|
|
98
|
+
/>
|
|
99
|
+
{isInvalid && <FieldError errors={field.state.meta.errors} />}
|
|
100
|
+
</Field>
|
|
101
|
+
)
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
104
|
+
<form.Field
|
|
105
|
+
name="password"
|
|
106
|
+
children={(field) => {
|
|
107
|
+
const isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > 0
|
|
108
|
+
return (
|
|
109
|
+
<Field data-invalid={isInvalid}>
|
|
110
|
+
<div className="flex items-center">
|
|
111
|
+
<FieldLabel htmlFor={field.name}>Password</FieldLabel>
|
|
112
|
+
<a
|
|
113
|
+
href="#"
|
|
114
|
+
className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
|
|
115
|
+
>
|
|
116
|
+
Forgot your password?
|
|
117
|
+
</a>
|
|
118
|
+
</div>
|
|
119
|
+
<Input
|
|
120
|
+
id={field.name}
|
|
121
|
+
name={field.name}
|
|
122
|
+
type="password"
|
|
123
|
+
value={field.state.value}
|
|
124
|
+
onBlur={field.handleBlur}
|
|
125
|
+
onChange={(e) => field.handleChange(e.target.value)}
|
|
126
|
+
required
|
|
127
|
+
/>
|
|
128
|
+
{isInvalid && <FieldError errors={field.state.meta.errors} />}
|
|
129
|
+
</Field>
|
|
130
|
+
)
|
|
131
|
+
}}
|
|
132
|
+
/>
|
|
62
133
|
<Field>
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
required
|
|
71
|
-
/>
|
|
72
|
-
</Field>
|
|
73
|
-
<Field>
|
|
74
|
-
<div className="flex items-center">
|
|
75
|
-
<FieldLabel htmlFor="password">Password</FieldLabel>
|
|
76
|
-
<a
|
|
77
|
-
href="#"
|
|
78
|
-
className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
|
|
79
|
-
>
|
|
80
|
-
Forgot your password?
|
|
81
|
-
</a>
|
|
82
|
-
</div>
|
|
83
|
-
<Input
|
|
84
|
-
id="password"
|
|
85
|
-
type="password"
|
|
86
|
-
value={password}
|
|
87
|
-
onChange={(e) => setPassword(e.target.value)}
|
|
88
|
-
required
|
|
134
|
+
<form.Subscribe
|
|
135
|
+
selector={(state) => [state.canSubmit, state.isSubmitting]}
|
|
136
|
+
children={([canSubmit, isSubmitting]) => (
|
|
137
|
+
<Button type="submit" disabled={!canSubmit || isSubmitting || loading}>
|
|
138
|
+
{isSubmitting || loading ? "Logging in..." : "Login"}
|
|
139
|
+
</Button>
|
|
140
|
+
)}
|
|
89
141
|
/>
|
|
90
|
-
</Field>
|
|
91
|
-
<Field>
|
|
92
|
-
<Button type="submit" disabled={loading}>
|
|
93
|
-
{loading ? "Logging in..." : "Login"}
|
|
94
|
-
</Button>
|
|
95
142
|
<Button variant="outline" type="button" disabled={loading}>
|
|
96
143
|
Login with Google
|
|
97
144
|
</Button>
|
|
@@ -9,41 +9,56 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
Field,
|
|
11
11
|
FieldDescription,
|
|
12
|
+
FieldError,
|
|
12
13
|
FieldGroup,
|
|
13
14
|
FieldLabel,
|
|
14
15
|
} from "@workspace/ui/components/field"
|
|
15
16
|
import { Input } from "@workspace/ui/components/input"
|
|
16
17
|
import { useState } from "react"
|
|
17
18
|
import { Link } from "@tanstack/react-router"
|
|
18
|
-
import {
|
|
19
|
+
import { useForm } from "@tanstack/react-form"
|
|
20
|
+
import { z } from "zod"
|
|
21
|
+
import { authClient } from "@/lib/auth-client"
|
|
22
|
+
|
|
23
|
+
const signupSchema = z.object({
|
|
24
|
+
name: z.string().min(1, "Full name is required"),
|
|
25
|
+
email: z.string().email("Invalid email address"),
|
|
26
|
+
password: z.string().min(8, "Password must be at least 8 characters long"),
|
|
27
|
+
confirmPassword: z.string().min(1, "Please confirm your password"),
|
|
28
|
+
}).refine((data) => data.password === data.confirmPassword, {
|
|
29
|
+
message: "Passwords do not match",
|
|
30
|
+
path: ["confirmPassword"],
|
|
31
|
+
})
|
|
19
32
|
|
|
20
33
|
export function SignupForm({ ...props }: React.ComponentProps<typeof Card>) {
|
|
21
|
-
const [name, setName] = useState("")
|
|
22
|
-
const [email, setEmail] = useState("")
|
|
23
|
-
const [password, setPassword] = useState("")
|
|
24
|
-
const [confirmPassword, setConfirmPassword] = useState("")
|
|
25
34
|
const [loading, setLoading] = useState(false)
|
|
26
35
|
const [error, setError] = useState<string | null>(null)
|
|
27
36
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
const form = useForm({
|
|
38
|
+
defaultValues: {
|
|
39
|
+
name: "",
|
|
40
|
+
email: "",
|
|
41
|
+
password: "",
|
|
42
|
+
confirmPassword: "",
|
|
43
|
+
},
|
|
44
|
+
validators: {
|
|
45
|
+
onChange: signupSchema,
|
|
46
|
+
},
|
|
47
|
+
onSubmit: async ({ value }) => {
|
|
48
|
+
setLoading(true)
|
|
49
|
+
setError(null)
|
|
50
|
+
const { error: signUpError } = await authClient.signUp.email({
|
|
51
|
+
email: value.email,
|
|
52
|
+
password: value.password,
|
|
53
|
+
name: value.name,
|
|
54
|
+
callbackURL: "/dashboard",
|
|
55
|
+
})
|
|
56
|
+
if (signUpError) {
|
|
57
|
+
setError(signUpError.message || "Failed to sign up")
|
|
58
|
+
}
|
|
59
|
+
setLoading(false)
|
|
60
|
+
},
|
|
61
|
+
})
|
|
47
62
|
|
|
48
63
|
return (
|
|
49
64
|
<Card {...props}>
|
|
@@ -54,70 +69,125 @@ export function SignupForm({ ...props }: React.ComponentProps<typeof Card>) {
|
|
|
54
69
|
</CardDescription>
|
|
55
70
|
</CardHeader>
|
|
56
71
|
<CardContent>
|
|
57
|
-
<form
|
|
72
|
+
<form
|
|
73
|
+
onSubmit={(e) => {
|
|
74
|
+
e.preventDefault()
|
|
75
|
+
e.stopPropagation()
|
|
76
|
+
form.handleSubmit()
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
58
79
|
<FieldGroup>
|
|
59
80
|
{error && (
|
|
60
81
|
<div className="rounded bg-red-100 p-2 text-sm text-red-600">
|
|
61
82
|
{error}
|
|
62
83
|
</div>
|
|
63
84
|
)}
|
|
64
|
-
<Field
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
85
|
+
<form.Field
|
|
86
|
+
name="name"
|
|
87
|
+
children={(field) => {
|
|
88
|
+
const isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > 0
|
|
89
|
+
return (
|
|
90
|
+
<Field data-invalid={isInvalid}>
|
|
91
|
+
<FieldLabel htmlFor={field.name}>Full Name</FieldLabel>
|
|
92
|
+
<Input
|
|
93
|
+
id={field.name}
|
|
94
|
+
name={field.name}
|
|
95
|
+
type="text"
|
|
96
|
+
placeholder="John Doe"
|
|
97
|
+
value={field.state.value}
|
|
98
|
+
onBlur={field.handleBlur}
|
|
99
|
+
onChange={(e) => field.handleChange(e.target.value)}
|
|
100
|
+
required
|
|
101
|
+
/>
|
|
102
|
+
{isInvalid && <FieldError errors={field.state.meta.errors} />}
|
|
103
|
+
</Field>
|
|
104
|
+
)
|
|
105
|
+
}}
|
|
106
|
+
/>
|
|
107
|
+
<form.Field
|
|
108
|
+
name="email"
|
|
109
|
+
children={(field) => {
|
|
110
|
+
const isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > 0
|
|
111
|
+
return (
|
|
112
|
+
<Field data-invalid={isInvalid}>
|
|
113
|
+
<FieldLabel htmlFor={field.name}>Email</FieldLabel>
|
|
114
|
+
<Input
|
|
115
|
+
id={field.name}
|
|
116
|
+
name={field.name}
|
|
117
|
+
type="email"
|
|
118
|
+
placeholder="m@example.com"
|
|
119
|
+
value={field.state.value}
|
|
120
|
+
onBlur={field.handleBlur}
|
|
121
|
+
onChange={(e) => field.handleChange(e.target.value)}
|
|
122
|
+
required
|
|
123
|
+
/>
|
|
124
|
+
<FieldDescription>
|
|
125
|
+
We'll use this to contact you. We will not share your email
|
|
126
|
+
with anyone else.
|
|
127
|
+
</FieldDescription>
|
|
128
|
+
{isInvalid && <FieldError errors={field.state.meta.errors} />}
|
|
129
|
+
</Field>
|
|
130
|
+
)
|
|
131
|
+
}}
|
|
132
|
+
/>
|
|
133
|
+
<form.Field
|
|
134
|
+
name="password"
|
|
135
|
+
children={(field) => {
|
|
136
|
+
const isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > 0
|
|
137
|
+
return (
|
|
138
|
+
<Field data-invalid={isInvalid}>
|
|
139
|
+
<FieldLabel htmlFor={field.name}>Password</FieldLabel>
|
|
140
|
+
<Input
|
|
141
|
+
id={field.name}
|
|
142
|
+
name={field.name}
|
|
143
|
+
type="password"
|
|
144
|
+
value={field.state.value}
|
|
145
|
+
onBlur={field.handleBlur}
|
|
146
|
+
onChange={(e) => field.handleChange(e.target.value)}
|
|
147
|
+
required
|
|
148
|
+
/>
|
|
149
|
+
<FieldDescription>
|
|
150
|
+
Must be at least 8 characters long.
|
|
151
|
+
</FieldDescription>
|
|
152
|
+
{isInvalid && <FieldError errors={field.state.meta.errors} />}
|
|
153
|
+
</Field>
|
|
154
|
+
)
|
|
155
|
+
}}
|
|
156
|
+
/>
|
|
157
|
+
<form.Field
|
|
158
|
+
name="confirmPassword"
|
|
159
|
+
children={(field) => {
|
|
160
|
+
const isInvalid = field.state.meta.isTouched && field.state.meta.errors.length > 0
|
|
161
|
+
return (
|
|
162
|
+
<Field data-invalid={isInvalid}>
|
|
163
|
+
<FieldLabel htmlFor={field.name}>
|
|
164
|
+
Confirm Password
|
|
165
|
+
</FieldLabel>
|
|
166
|
+
<Input
|
|
167
|
+
id={field.name}
|
|
168
|
+
name={field.name}
|
|
169
|
+
type="password"
|
|
170
|
+
value={field.state.value}
|
|
171
|
+
onBlur={field.handleBlur}
|
|
172
|
+
onChange={(e) => field.handleChange(e.target.value)}
|
|
173
|
+
required
|
|
174
|
+
/>
|
|
175
|
+
<FieldDescription>Please confirm your password.</FieldDescription>
|
|
176
|
+
{isInvalid && <FieldError errors={field.state.meta.errors} />}
|
|
177
|
+
</Field>
|
|
178
|
+
)
|
|
179
|
+
}}
|
|
180
|
+
/>
|
|
116
181
|
<FieldGroup>
|
|
117
182
|
<Field>
|
|
118
|
-
<
|
|
119
|
-
{
|
|
120
|
-
|
|
183
|
+
<form.Subscribe
|
|
184
|
+
selector={(state) => [state.canSubmit, state.isSubmitting]}
|
|
185
|
+
children={([canSubmit, isSubmitting]) => (
|
|
186
|
+
<Button type="submit" disabled={!canSubmit || isSubmitting || loading}>
|
|
187
|
+
{isSubmitting || loading ? "Creating..." : "Create Account"}
|
|
188
|
+
</Button>
|
|
189
|
+
)}
|
|
190
|
+
/>
|
|
121
191
|
<Button variant="outline" type="button" disabled={loading}>
|
|
122
192
|
Sign up with Google
|
|
123
193
|
</Button>
|
|
@@ -17,6 +17,7 @@ import { Route as IsrRouteImport } from './routes/isr'
|
|
|
17
17
|
import { Route as DashboardRouteImport } from './routes/dashboard'
|
|
18
18
|
import { Route as ClientOrpcAuthRouteImport } from './routes/client-orpc-auth'
|
|
19
19
|
import { Route as ClientOrpcRouteImport } from './routes/client-orpc'
|
|
20
|
+
import { Route as AccountRouteImport } from './routes/account'
|
|
20
21
|
import { Route as IndexRouteImport } from './routes/index'
|
|
21
22
|
import { Route as ApiRpcSplatRouteImport } from './routes/api/rpc.$'
|
|
22
23
|
import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
|
|
@@ -61,6 +62,11 @@ const ClientOrpcRoute = ClientOrpcRouteImport.update({
|
|
|
61
62
|
path: '/client-orpc',
|
|
62
63
|
getParentRoute: () => rootRouteImport,
|
|
63
64
|
} as any)
|
|
65
|
+
const AccountRoute = AccountRouteImport.update({
|
|
66
|
+
id: '/account',
|
|
67
|
+
path: '/account',
|
|
68
|
+
getParentRoute: () => rootRouteImport,
|
|
69
|
+
} as any)
|
|
64
70
|
const IndexRoute = IndexRouteImport.update({
|
|
65
71
|
id: '/',
|
|
66
72
|
path: '/',
|
|
@@ -79,6 +85,7 @@ const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
|
|
|
79
85
|
|
|
80
86
|
export interface FileRoutesByFullPath {
|
|
81
87
|
'/': typeof IndexRoute
|
|
88
|
+
'/account': typeof AccountRoute
|
|
82
89
|
'/client-orpc': typeof ClientOrpcRoute
|
|
83
90
|
'/client-orpc-auth': typeof ClientOrpcAuthRoute
|
|
84
91
|
'/dashboard': typeof DashboardRoute
|
|
@@ -92,6 +99,7 @@ export interface FileRoutesByFullPath {
|
|
|
92
99
|
}
|
|
93
100
|
export interface FileRoutesByTo {
|
|
94
101
|
'/': typeof IndexRoute
|
|
102
|
+
'/account': typeof AccountRoute
|
|
95
103
|
'/client-orpc': typeof ClientOrpcRoute
|
|
96
104
|
'/client-orpc-auth': typeof ClientOrpcAuthRoute
|
|
97
105
|
'/dashboard': typeof DashboardRoute
|
|
@@ -106,6 +114,7 @@ export interface FileRoutesByTo {
|
|
|
106
114
|
export interface FileRoutesById {
|
|
107
115
|
__root__: typeof rootRouteImport
|
|
108
116
|
'/': typeof IndexRoute
|
|
117
|
+
'/account': typeof AccountRoute
|
|
109
118
|
'/client-orpc': typeof ClientOrpcRoute
|
|
110
119
|
'/client-orpc-auth': typeof ClientOrpcAuthRoute
|
|
111
120
|
'/dashboard': typeof DashboardRoute
|
|
@@ -121,6 +130,7 @@ export interface FileRouteTypes {
|
|
|
121
130
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
122
131
|
fullPaths:
|
|
123
132
|
| '/'
|
|
133
|
+
| '/account'
|
|
124
134
|
| '/client-orpc'
|
|
125
135
|
| '/client-orpc-auth'
|
|
126
136
|
| '/dashboard'
|
|
@@ -134,6 +144,7 @@ export interface FileRouteTypes {
|
|
|
134
144
|
fileRoutesByTo: FileRoutesByTo
|
|
135
145
|
to:
|
|
136
146
|
| '/'
|
|
147
|
+
| '/account'
|
|
137
148
|
| '/client-orpc'
|
|
138
149
|
| '/client-orpc-auth'
|
|
139
150
|
| '/dashboard'
|
|
@@ -147,6 +158,7 @@ export interface FileRouteTypes {
|
|
|
147
158
|
id:
|
|
148
159
|
| '__root__'
|
|
149
160
|
| '/'
|
|
161
|
+
| '/account'
|
|
150
162
|
| '/client-orpc'
|
|
151
163
|
| '/client-orpc-auth'
|
|
152
164
|
| '/dashboard'
|
|
@@ -161,6 +173,7 @@ export interface FileRouteTypes {
|
|
|
161
173
|
}
|
|
162
174
|
export interface RootRouteChildren {
|
|
163
175
|
IndexRoute: typeof IndexRoute
|
|
176
|
+
AccountRoute: typeof AccountRoute
|
|
164
177
|
ClientOrpcRoute: typeof ClientOrpcRoute
|
|
165
178
|
ClientOrpcAuthRoute: typeof ClientOrpcAuthRoute
|
|
166
179
|
DashboardRoute: typeof DashboardRoute
|
|
@@ -231,6 +244,13 @@ declare module '@tanstack/react-router' {
|
|
|
231
244
|
preLoaderRoute: typeof ClientOrpcRouteImport
|
|
232
245
|
parentRoute: typeof rootRouteImport
|
|
233
246
|
}
|
|
247
|
+
'/account': {
|
|
248
|
+
id: '/account'
|
|
249
|
+
path: '/account'
|
|
250
|
+
fullPath: '/account'
|
|
251
|
+
preLoaderRoute: typeof AccountRouteImport
|
|
252
|
+
parentRoute: typeof rootRouteImport
|
|
253
|
+
}
|
|
234
254
|
'/': {
|
|
235
255
|
id: '/'
|
|
236
256
|
path: '/'
|
|
@@ -257,6 +277,7 @@ declare module '@tanstack/react-router' {
|
|
|
257
277
|
|
|
258
278
|
const rootRouteChildren: RootRouteChildren = {
|
|
259
279
|
IndexRoute: IndexRoute,
|
|
280
|
+
AccountRoute: AccountRoute,
|
|
260
281
|
ClientOrpcRoute: ClientOrpcRoute,
|
|
261
282
|
ClientOrpcAuthRoute: ClientOrpcAuthRoute,
|
|
262
283
|
DashboardRoute: DashboardRoute,
|