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.
- package/package.json +2 -1
- package/template/apps/platform/package.json +1 -0
- package/template/apps/platform/src/components/access-denied.tsx +32 -0
- package/template/apps/platform/src/components/app-sidebar.tsx +30 -50
- package/template/apps/platform/src/lib/auth-utils.ts +17 -3
- package/template/apps/platform/src/routes/__root.tsx +1 -1
- package/template/apps/platform/src/routes/_auth/account.tsx +7 -9
- package/template/apps/platform/src/routes/_auth/dashboard.tsx +8 -7
- package/template/apps/platform/src/routes/_auth/examples/client-orpc-auth.tsx +6 -9
- package/template/apps/platform/src/routes/_auth/examples/ssr-orpc-auth.tsx +8 -9
- package/template/apps/platform/src/routes/_auth.tsx +2 -2
- package/template/apps/platform/src/routes/_public.tsx +2 -2
- package/template/apps/platform/src/routes/api/auth/$.ts +25 -15
- package/template/apps/platform/src/routes/api/rpc.$.ts +15 -8
- package/template/docker-compose.yml +1 -3
- package/template/package.json +1 -12
- package/template/packages/auth/package.json +2 -2
- package/template/packages/auth/src/lib/auth.ts +10 -0
- package/template/apps/desktop/.vscode/extensions.json +0 -3
- package/template/apps/desktop/README.md +0 -7
- package/template/apps/desktop/index.html +0 -14
- package/template/apps/desktop/package.json +0 -40
- package/template/apps/desktop/public/tauri.svg +0 -6
- package/template/apps/desktop/public/vite.svg +0 -1
- package/template/apps/desktop/src/App.css +0 -116
- package/template/apps/desktop/src/App.tsx +0 -51
- package/template/apps/desktop/src/assets/react.svg +0 -1
- package/template/apps/desktop/src/components/app-sidebar.tsx +0 -186
- package/template/apps/desktop/src/components/login-form.tsx +0 -160
- package/template/apps/desktop/src/components/search-form.tsx +0 -19
- package/template/apps/desktop/src/components/signup-form.tsx +0 -206
- package/template/apps/desktop/src/components/version-switcher.tsx +0 -54
- package/template/apps/desktop/src/env.d.ts +0 -1
- package/template/apps/desktop/src/lib/auth-client.ts +0 -5
- package/template/apps/desktop/src/lib/orpc.ts +0 -10
- package/template/apps/desktop/src/main.tsx +0 -12
- package/template/apps/desktop/src/routeTree.gen.ts +0 -240
- package/template/apps/desktop/src/router.tsx +0 -19
- package/template/apps/desktop/src/routes/__root.tsx +0 -52
- package/template/apps/desktop/src/routes/_auth/account.tsx +0 -275
- package/template/apps/desktop/src/routes/_auth/dashboard.tsx +0 -58
- package/template/apps/desktop/src/routes/_auth/examples/client-orpc-auth.tsx +0 -46
- package/template/apps/desktop/src/routes/_auth.tsx +0 -23
- package/template/apps/desktop/src/routes/_public/examples/client-orpc.tsx +0 -330
- package/template/apps/desktop/src/routes/_public/index.tsx +0 -66
- package/template/apps/desktop/src/routes/_public/login.tsx +0 -34
- package/template/apps/desktop/src/routes/_public/signup.tsx +0 -31
- package/template/apps/desktop/src/routes/_public.tsx +0 -23
- package/template/apps/desktop/src/vite-env.d.ts +0 -1
- package/template/apps/desktop/src-tauri/Cargo.toml +0 -25
- package/template/apps/desktop/src-tauri/build.rs +0 -3
- package/template/apps/desktop/src-tauri/capabilities/default.json +0 -7
- package/template/apps/desktop/src-tauri/icons/128x128.png +0 -0
- package/template/apps/desktop/src-tauri/icons/128x128@2x.png +0 -0
- package/template/apps/desktop/src-tauri/icons/32x32.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square107x107Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square142x142Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square150x150Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square284x284Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square30x30Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square310x310Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square44x44Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square71x71Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/Square89x89Logo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/StoreLogo.png +0 -0
- package/template/apps/desktop/src-tauri/icons/icon.icns +0 -0
- package/template/apps/desktop/src-tauri/icons/icon.ico +0 -0
- package/template/apps/desktop/src-tauri/icons/icon.png +0 -0
- package/template/apps/desktop/src-tauri/src/lib.rs +0 -14
- package/template/apps/desktop/src-tauri/src/main.rs +0 -6
- package/template/apps/desktop/src-tauri/tauri.conf.json +0 -35
- package/template/apps/desktop/tsconfig.json +0 -17
- package/template/apps/desktop/tsconfig.node.json +0 -10
- 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
|
-
}));
|