create-croissant 0.1.57 → 0.1.59

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.
Files changed (74) hide show
  1. package/package.json +2 -1
  2. package/template/apps/platform/package.json +1 -0
  3. package/template/apps/platform/src/components/access-denied.tsx +32 -0
  4. package/template/apps/platform/src/components/app-sidebar.tsx +30 -50
  5. package/template/apps/platform/src/lib/auth-utils.ts +17 -3
  6. package/template/apps/platform/src/routes/__root.tsx +1 -1
  7. package/template/apps/platform/src/routes/_auth/account.tsx +7 -9
  8. package/template/apps/platform/src/routes/_auth/dashboard.tsx +8 -7
  9. package/template/apps/platform/src/routes/_auth/examples/client-orpc-auth.tsx +6 -9
  10. package/template/apps/platform/src/routes/_auth/examples/ssr-orpc-auth.tsx +8 -9
  11. package/template/apps/platform/src/routes/_auth.tsx +2 -2
  12. package/template/apps/platform/src/routes/_public.tsx +2 -2
  13. package/template/apps/platform/src/routes/api/auth/$.ts +25 -15
  14. package/template/apps/platform/src/routes/api/rpc.$.ts +15 -8
  15. package/template/docker-compose.yml +1 -3
  16. package/template/package.json +1 -12
  17. package/template/packages/auth/package.json +2 -2
  18. package/template/packages/auth/src/lib/auth.ts +10 -0
  19. package/template/apps/desktop/.vscode/extensions.json +0 -3
  20. package/template/apps/desktop/README.md +0 -7
  21. package/template/apps/desktop/index.html +0 -14
  22. package/template/apps/desktop/package.json +0 -40
  23. package/template/apps/desktop/public/tauri.svg +0 -6
  24. package/template/apps/desktop/public/vite.svg +0 -1
  25. package/template/apps/desktop/src/App.css +0 -116
  26. package/template/apps/desktop/src/App.tsx +0 -51
  27. package/template/apps/desktop/src/assets/react.svg +0 -1
  28. package/template/apps/desktop/src/components/app-sidebar.tsx +0 -186
  29. package/template/apps/desktop/src/components/login-form.tsx +0 -160
  30. package/template/apps/desktop/src/components/search-form.tsx +0 -19
  31. package/template/apps/desktop/src/components/signup-form.tsx +0 -206
  32. package/template/apps/desktop/src/components/version-switcher.tsx +0 -54
  33. package/template/apps/desktop/src/env.d.ts +0 -1
  34. package/template/apps/desktop/src/lib/auth-client.ts +0 -5
  35. package/template/apps/desktop/src/lib/orpc.ts +0 -10
  36. package/template/apps/desktop/src/main.tsx +0 -12
  37. package/template/apps/desktop/src/routeTree.gen.ts +0 -240
  38. package/template/apps/desktop/src/router.tsx +0 -19
  39. package/template/apps/desktop/src/routes/__root.tsx +0 -52
  40. package/template/apps/desktop/src/routes/_auth/account.tsx +0 -275
  41. package/template/apps/desktop/src/routes/_auth/dashboard.tsx +0 -58
  42. package/template/apps/desktop/src/routes/_auth/examples/client-orpc-auth.tsx +0 -46
  43. package/template/apps/desktop/src/routes/_auth.tsx +0 -23
  44. package/template/apps/desktop/src/routes/_public/examples/client-orpc.tsx +0 -330
  45. package/template/apps/desktop/src/routes/_public/index.tsx +0 -66
  46. package/template/apps/desktop/src/routes/_public/login.tsx +0 -34
  47. package/template/apps/desktop/src/routes/_public/signup.tsx +0 -31
  48. package/template/apps/desktop/src/routes/_public.tsx +0 -23
  49. package/template/apps/desktop/src/vite-env.d.ts +0 -1
  50. package/template/apps/desktop/src-tauri/Cargo.toml +0 -25
  51. package/template/apps/desktop/src-tauri/build.rs +0 -3
  52. package/template/apps/desktop/src-tauri/capabilities/default.json +0 -7
  53. package/template/apps/desktop/src-tauri/icons/128x128.png +0 -0
  54. package/template/apps/desktop/src-tauri/icons/128x128@2x.png +0 -0
  55. package/template/apps/desktop/src-tauri/icons/32x32.png +0 -0
  56. package/template/apps/desktop/src-tauri/icons/Square107x107Logo.png +0 -0
  57. package/template/apps/desktop/src-tauri/icons/Square142x142Logo.png +0 -0
  58. package/template/apps/desktop/src-tauri/icons/Square150x150Logo.png +0 -0
  59. package/template/apps/desktop/src-tauri/icons/Square284x284Logo.png +0 -0
  60. package/template/apps/desktop/src-tauri/icons/Square30x30Logo.png +0 -0
  61. package/template/apps/desktop/src-tauri/icons/Square310x310Logo.png +0 -0
  62. package/template/apps/desktop/src-tauri/icons/Square44x44Logo.png +0 -0
  63. package/template/apps/desktop/src-tauri/icons/Square71x71Logo.png +0 -0
  64. package/template/apps/desktop/src-tauri/icons/Square89x89Logo.png +0 -0
  65. package/template/apps/desktop/src-tauri/icons/StoreLogo.png +0 -0
  66. package/template/apps/desktop/src-tauri/icons/icon.icns +0 -0
  67. package/template/apps/desktop/src-tauri/icons/icon.ico +0 -0
  68. package/template/apps/desktop/src-tauri/icons/icon.png +0 -0
  69. package/template/apps/desktop/src-tauri/src/lib.rs +0 -14
  70. package/template/apps/desktop/src-tauri/src/main.rs +0 -6
  71. package/template/apps/desktop/src-tauri/tauri.conf.json +0 -35
  72. package/template/apps/desktop/tsconfig.json +0 -17
  73. package/template/apps/desktop/tsconfig.node.json +0 -10
  74. package/template/apps/desktop/vite.config.ts +0 -40
@@ -1,40 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import react from "@vitejs/plugin-react";
3
- import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
4
- import tailwindcss from "@tailwindcss/vite";
5
- import tsconfigPaths from "vite-tsconfig-paths";
6
-
7
- // https://vite.dev/config/
8
- export default defineConfig(async () => ({
9
- plugins: [
10
- tsconfigPaths(),
11
- TanStackRouterVite({
12
- routesDirectory: "./src/routes",
13
- generatedRouteTree: "./src/routeTree.gen.ts",
14
- }),
15
- react(),
16
- tailwindcss(),
17
- ],
18
-
19
- // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
20
- //
21
- // 1. prevent Vite from obscuring rust errors
22
- clearScreen: false,
23
- // 2. tauri expects a fixed port, fail if that port is not available
24
- server: {
25
- port: 1420,
26
- strictPort: true,
27
- host: process.env.TAURI_DEV_HOST || false,
28
- hmr: process.env.TAURI_DEV_HOST
29
- ? {
30
- protocol: "ws",
31
- host: process.env.TAURI_DEV_HOST,
32
- port: 1421,
33
- }
34
- : undefined,
35
- watch: {
36
- // 3. tell Vite to ignore watching `src-tauri`
37
- ignored: ["**/src-tauri/**"],
38
- },
39
- },
40
- }));