create-croissant 0.1.51 → 0.1.53
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/desktop/package.json +2 -1
- package/template/apps/desktop/src/renderer/src/components/app-sidebar.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/components/login-form.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/components/signup-form.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/lib/auth-client.ts +3 -1
- package/template/apps/desktop/src/renderer/src/routes/__root.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/routes/_auth/account.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/routes/_auth/dashboard.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/routes/_auth/examples/client-orpc-auth.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/routes/_auth.tsx +2 -2
- package/template/apps/desktop/src/renderer/src/routes/_public/login.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/routes/_public/signup.tsx +1 -1
- package/template/apps/desktop/src/renderer/src/routes/_public.tsx +1 -1
- package/template/apps/desktop/tsconfig.web.json +1 -1
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import { Avatar, AvatarFallback, AvatarImage } from "@workspace/ui/components/avatar";
|
|
19
19
|
import { ModeToggle } from "@workspace/ui/components/mode-toggle";
|
|
20
20
|
|
|
21
|
-
import { authClient } from "
|
|
21
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
22
22
|
|
|
23
23
|
// This is sample data.
|
|
24
24
|
export const authNavItems = [
|
|
@@ -20,7 +20,7 @@ import { Link, useNavigate } from "@tanstack/react-router";
|
|
|
20
20
|
import { useForm } from "@tanstack/react-form";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
|
|
23
|
-
import { authClient } from "
|
|
23
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
24
24
|
|
|
25
25
|
const loginSchema = z.object({
|
|
26
26
|
email: z.string().email("Invalid email address"),
|
|
@@ -18,7 +18,7 @@ import { useState } from "react";
|
|
|
18
18
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
19
19
|
import { useForm } from "@tanstack/react-form";
|
|
20
20
|
import { z } from "zod";
|
|
21
|
-
import { authClient } from "
|
|
21
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
22
22
|
|
|
23
23
|
const signupSchema = z
|
|
24
24
|
.object({
|
|
@@ -3,7 +3,7 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
|
3
3
|
import { Toaster } from "@workspace/ui/components/sonner";
|
|
4
4
|
import { ThemeProvider } from "@workspace/ui/components/theme-provider";
|
|
5
5
|
import { ORPCProvider } from "@workspace/orpc/react";
|
|
6
|
-
import { orpc } from "
|
|
6
|
+
import { orpc } from "@renderer/lib/orpc";
|
|
7
7
|
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
|
8
8
|
|
|
9
9
|
import "@workspace/ui/globals.css";
|
|
@@ -19,7 +19,7 @@ import { Field, FieldError, FieldLabel } from "@workspace/ui/components/field";
|
|
|
19
19
|
import { Avatar, AvatarFallback, AvatarImage } from "@workspace/ui/components/avatar";
|
|
20
20
|
import { Separator } from "@workspace/ui/components/separator";
|
|
21
21
|
|
|
22
|
-
import { authClient } from "
|
|
22
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
23
23
|
|
|
24
24
|
const profileSchema = z.object({
|
|
25
25
|
name: z.string().min(1, "Name is required"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { authClient } from "
|
|
2
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
3
3
|
import { useSecretData } from "@workspace/orpc/react";
|
|
4
4
|
|
|
5
5
|
export const Route = createFileRoute("/_auth/dashboard")({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFileRoute } from "@tanstack/react-router";
|
|
2
2
|
import { useSecretData } from "@workspace/orpc/react";
|
|
3
|
-
import { authClient } from "
|
|
3
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
4
4
|
|
|
5
5
|
export const Route = createFileRoute("/_auth/examples/client-orpc-auth")({
|
|
6
6
|
component: ClientORPCAuth,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Outlet, createFileRoute, redirect } from "@tanstack/react-router";
|
|
2
2
|
import { SidebarProvider, SidebarTrigger } from "@workspace/ui/components/sidebar";
|
|
3
|
-
import { AuthSidebar } from "
|
|
4
|
-
import { authClient } from "
|
|
3
|
+
import { AuthSidebar } from "@renderer/components/app-sidebar";
|
|
4
|
+
import { authClient } from "@renderer/lib/auth-client";
|
|
5
5
|
|
|
6
6
|
export const Route = createFileRoute("/_auth")({
|
|
7
7
|
beforeLoad: async ({ location }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Outlet, createFileRoute } from "@tanstack/react-router";
|
|
2
2
|
import { SidebarProvider, SidebarTrigger } from "@workspace/ui/components/sidebar";
|
|
3
|
-
import { PublicSidebar } from "
|
|
3
|
+
import { PublicSidebar } from "@renderer/components/app-sidebar";
|
|
4
4
|
|
|
5
5
|
export const Route = createFileRoute("/_public")({
|
|
6
6
|
component: PublicLayout,
|