shipd 0.1.0
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/LICENSE +21 -0
- package/README.md +205 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1366 -0
- package/docs-template/README.md +255 -0
- package/docs-template/[slug]/[subslug]/page.tsx +1242 -0
- package/docs-template/[slug]/page.tsx +422 -0
- package/docs-template/api/page.tsx +47 -0
- package/docs-template/components/docs/docs-category-page.tsx +162 -0
- package/docs-template/components/docs/docs-code-card.tsx +135 -0
- package/docs-template/components/docs/docs-header.tsx +69 -0
- package/docs-template/components/docs/docs-nav.ts +95 -0
- package/docs-template/components/docs/docs-sidebar.tsx +112 -0
- package/docs-template/components/docs/docs-toc.tsx +38 -0
- package/docs-template/components/ui/badge.tsx +47 -0
- package/docs-template/components/ui/button.tsx +60 -0
- package/docs-template/components/ui/card.tsx +93 -0
- package/docs-template/components/ui/sheet.tsx +140 -0
- package/docs-template/documentation/page.tsx +80 -0
- package/docs-template/layout.tsx +27 -0
- package/docs-template/lib/utils.ts +7 -0
- package/docs-template/page.tsx +360 -0
- package/package.json +66 -0
- package/template/.env.example +45 -0
- package/template/README.md +239 -0
- package/template/app/api/auth/[...all]/route.ts +4 -0
- package/template/app/api/chat/route.ts +16 -0
- package/template/app/api/subscription/route.ts +25 -0
- package/template/app/api/upload-image/route.ts +64 -0
- package/template/app/blog/[slug]/page.tsx +314 -0
- package/template/app/blog/page.tsx +107 -0
- package/template/app/dashboard/_components/chart-interactive.tsx +289 -0
- package/template/app/dashboard/_components/chatbot.tsx +39 -0
- package/template/app/dashboard/_components/mode-toggle.tsx +46 -0
- package/template/app/dashboard/_components/navbar.tsx +84 -0
- package/template/app/dashboard/_components/section-cards.tsx +102 -0
- package/template/app/dashboard/_components/sidebar.tsx +90 -0
- package/template/app/dashboard/_components/subscribe-button.tsx +49 -0
- package/template/app/dashboard/billing/page.tsx +277 -0
- package/template/app/dashboard/chat/page.tsx +73 -0
- package/template/app/dashboard/cli/page.tsx +260 -0
- package/template/app/dashboard/layout.tsx +24 -0
- package/template/app/dashboard/page.tsx +216 -0
- package/template/app/dashboard/payment/_components/manage-subscription.tsx +22 -0
- package/template/app/dashboard/payment/page.tsx +126 -0
- package/template/app/dashboard/settings/page.tsx +613 -0
- package/template/app/dashboard/upload/page.tsx +324 -0
- package/template/app/error.tsx +78 -0
- package/template/app/favicon.ico +0 -0
- package/template/app/globals.css +126 -0
- package/template/app/layout.tsx +135 -0
- package/template/app/not-found.tsx +45 -0
- package/template/app/page.tsx +28 -0
- package/template/app/pricing/_component/pricing-table.tsx +276 -0
- package/template/app/pricing/page.tsx +23 -0
- package/template/app/privacy-policy/page.tsx +280 -0
- package/template/app/robots.txt +12 -0
- package/template/app/sign-in/page.tsx +228 -0
- package/template/app/sign-up/page.tsx +243 -0
- package/template/app/sitemap.ts +62 -0
- package/template/app/success/page.tsx +123 -0
- package/template/app/terms-of-service/page.tsx +212 -0
- package/template/auth-schema.ts +47 -0
- package/template/components/homepage/cli-workflow-section.tsx +138 -0
- package/template/components/homepage/features-section.tsx +150 -0
- package/template/components/homepage/footer.tsx +53 -0
- package/template/components/homepage/hero-section.tsx +112 -0
- package/template/components/homepage/integrations.tsx +124 -0
- package/template/components/homepage/navigation.tsx +116 -0
- package/template/components/homepage/news-section.tsx +82 -0
- package/template/components/homepage/testimonials-section.tsx +34 -0
- package/template/components/logos/BetterAuth.tsx +21 -0
- package/template/components/logos/NeonPostgres.tsx +41 -0
- package/template/components/logos/Nextjs.tsx +72 -0
- package/template/components/logos/Polar.tsx +7 -0
- package/template/components/logos/TailwindCSS.tsx +27 -0
- package/template/components/logos/index.ts +6 -0
- package/template/components/logos/shadcnui.tsx +8 -0
- package/template/components/provider.tsx +8 -0
- package/template/components/ui/avatar.tsx +53 -0
- package/template/components/ui/badge.tsx +46 -0
- package/template/components/ui/button.tsx +59 -0
- package/template/components/ui/card.tsx +92 -0
- package/template/components/ui/chart.tsx +353 -0
- package/template/components/ui/checkbox.tsx +32 -0
- package/template/components/ui/dialog.tsx +135 -0
- package/template/components/ui/dropdown-menu.tsx +257 -0
- package/template/components/ui/form.tsx +167 -0
- package/template/components/ui/input.tsx +21 -0
- package/template/components/ui/label.tsx +24 -0
- package/template/components/ui/progress.tsx +31 -0
- package/template/components/ui/resizable.tsx +56 -0
- package/template/components/ui/select.tsx +185 -0
- package/template/components/ui/separator.tsx +28 -0
- package/template/components/ui/sheet.tsx +139 -0
- package/template/components/ui/skeleton.tsx +13 -0
- package/template/components/ui/sonner.tsx +25 -0
- package/template/components/ui/switch.tsx +31 -0
- package/template/components/ui/tabs.tsx +66 -0
- package/template/components/ui/textarea.tsx +18 -0
- package/template/components/ui/toggle-group.tsx +73 -0
- package/template/components/ui/toggle.tsx +47 -0
- package/template/components/ui/tooltip.tsx +61 -0
- package/template/components/user-profile.tsx +139 -0
- package/template/components.json +21 -0
- package/template/db/drizzle.ts +14 -0
- package/template/db/migrations/0000_worried_rawhide_kid.sql +77 -0
- package/template/db/migrations/meta/0000_snapshot.json +494 -0
- package/template/db/migrations/meta/_journal.json +13 -0
- package/template/db/schema.ts +85 -0
- package/template/drizzle.config.ts +13 -0
- package/template/emails/components/layout.tsx +181 -0
- package/template/emails/password-reset.tsx +67 -0
- package/template/emails/payment-failed.tsx +167 -0
- package/template/emails/subscription-confirmation.tsx +129 -0
- package/template/emails/welcome.tsx +100 -0
- package/template/eslint.config.mjs +16 -0
- package/template/hooks/use-mobile.ts +21 -0
- package/template/lib/auth-client.ts +8 -0
- package/template/lib/auth.ts +276 -0
- package/template/lib/email.ts +118 -0
- package/template/lib/polar-products.ts +49 -0
- package/template/lib/subscription.ts +148 -0
- package/template/lib/upload-image.ts +28 -0
- package/template/lib/utils.ts +6 -0
- package/template/middleware.ts +30 -0
- package/template/next-env.d.ts +5 -0
- package/template/next.config.ts +27 -0
- package/template/package.json +99 -0
- package/template/postcss.config.mjs +5 -0
- package/template/public/add.png +0 -0
- package/template/public/favicon.svg +4 -0
- package/template/public/file.svg +1 -0
- package/template/public/globe.svg +1 -0
- package/template/public/iphone.png +0 -0
- package/template/public/logo.png +0 -0
- package/template/public/next.svg +1 -0
- package/template/public/polar-sh.svg +1 -0
- package/template/public/shadcn-ui.svg +1 -0
- package/template/public/site.webmanifest +21 -0
- package/template/public/vercel.svg +1 -0
- package/template/public/window.svg +1 -0
- package/template/tailwind.config.ts +89 -0
- package/template/template.config.json +138 -0
- package/template/tsconfig.json +27 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{PROJECT_NAME_KEBAB}}",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "{{PROJECT_DESCRIPTION}}",
|
|
5
|
+
"private": true,
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "next dev --turbopack",
|
|
8
|
+
"build": "next build",
|
|
9
|
+
"start": "next start",
|
|
10
|
+
"lint": "next lint",
|
|
11
|
+
"db:push": "drizzle-kit push",
|
|
12
|
+
"db:generate": "drizzle-kit generate",
|
|
13
|
+
"db:migrate": "drizzle-kit migrate",
|
|
14
|
+
"db:studio": "drizzle-kit studio"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@ai-sdk/openai": "^1.3.22",
|
|
18
|
+
"@aws-sdk/client-s3": "^3.800.0",
|
|
19
|
+
"@hookform/resolvers": "^5.0.1",
|
|
20
|
+
"@icons-pack/react-simple-icons": "^12.7.0",
|
|
21
|
+
"postgres": "^3.4.4",
|
|
22
|
+
"@polar-sh/better-auth": "^1.0.1",
|
|
23
|
+
"@polar-sh/sdk": "^0.42.1",
|
|
24
|
+
"@radix-ui/react-avatar": "^1.1.7",
|
|
25
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
26
|
+
"@radix-ui/react-dialog": "^1.1.11",
|
|
27
|
+
"@radix-ui/react-dropdown-menu": "^2.1.12",
|
|
28
|
+
"@radix-ui/react-label": "^2.1.6",
|
|
29
|
+
"@radix-ui/react-progress": "^1.1.4",
|
|
30
|
+
"@radix-ui/react-select": "^2.2.2",
|
|
31
|
+
"@radix-ui/react-separator": "^1.1.4",
|
|
32
|
+
"@radix-ui/react-slider": "^1.3.2",
|
|
33
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
34
|
+
"@radix-ui/react-switch": "^1.2.2",
|
|
35
|
+
"@radix-ui/react-tabs": "^1.1.9",
|
|
36
|
+
"@radix-ui/react-toggle": "^1.1.9",
|
|
37
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
38
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
39
|
+
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
40
|
+
"@react-email/components": "^1.0.2",
|
|
41
|
+
"@react-email/render": "^2.0.0",
|
|
42
|
+
"@tabler/icons-react": "^3.34.0",
|
|
43
|
+
"@tanstack/react-query": "^5.76.1",
|
|
44
|
+
"@uploadthing/react": "^7.3.0",
|
|
45
|
+
"@vercel/analytics": "^1.5.0",
|
|
46
|
+
"@walletpass/pass-js": "^6.9.1",
|
|
47
|
+
"ai": "^4.3.16",
|
|
48
|
+
"apn": "^2.2.0",
|
|
49
|
+
"balloons-js": "^0.0.3",
|
|
50
|
+
"better-auth": "^1.2.8",
|
|
51
|
+
"class-variance-authority": "^0.7.1",
|
|
52
|
+
"clsx": "^2.1.1",
|
|
53
|
+
"color": "^5.0.0",
|
|
54
|
+
"date-fns": "^4.1.0",
|
|
55
|
+
"dotenv": "^16.5.0",
|
|
56
|
+
"drizzle-orm": "^0.41.0",
|
|
57
|
+
"form-data": "^4.0.2",
|
|
58
|
+
"framer-motion": "^12.12.1",
|
|
59
|
+
"lodash": "^4.17.21",
|
|
60
|
+
"lucide-react": "^0.503.0",
|
|
61
|
+
"nanoid": "^5.1.5",
|
|
62
|
+
"next": "15.3.8",
|
|
63
|
+
"next-themes": "^0.4.6",
|
|
64
|
+
"pg": "^8.16.0",
|
|
65
|
+
"posthog-js": "^1.248.1",
|
|
66
|
+
"posthog-node": "^4.18.0",
|
|
67
|
+
"qrcode.react": "^4.2.0",
|
|
68
|
+
"react": "^19.0.0",
|
|
69
|
+
"react-dom": "^19.0.0",
|
|
70
|
+
"react-hook-form": "^7.56.1",
|
|
71
|
+
"react-markdown": "^10.1.0",
|
|
72
|
+
"react-resizable-panels": "^2.1.8",
|
|
73
|
+
"recharts": "^2.15.3",
|
|
74
|
+
"remark-gfm": "^4.0.1",
|
|
75
|
+
"resend": "^6.6.0",
|
|
76
|
+
"slug": "^11.0.0",
|
|
77
|
+
"sonner": "^2.0.3",
|
|
78
|
+
"tailwind-merge": "^3.2.0",
|
|
79
|
+
"tailwindcss-animate": "^1.0.7",
|
|
80
|
+
"ua-parser-js": "^2.0.3",
|
|
81
|
+
"uploadthing": "^7.6.0",
|
|
82
|
+
"zod": "^3.24.3"
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@eslint/eslintrc": "^3",
|
|
86
|
+
"@tailwindcss/postcss": "^4",
|
|
87
|
+
"@types/lodash": "^4.17.17",
|
|
88
|
+
"@types/node": "^20.17.31",
|
|
89
|
+
"@types/react": "^19",
|
|
90
|
+
"@types/react-dom": "^19",
|
|
91
|
+
"@types/slug": "^5.0.9",
|
|
92
|
+
"drizzle-kit": "^0.31.0",
|
|
93
|
+
"eslint": "^9",
|
|
94
|
+
"eslint-config-next": "15.3.1",
|
|
95
|
+
"tailwindcss": "^4.1.7",
|
|
96
|
+
"tw-animate-css": "^1.3.0",
|
|
97
|
+
"typescript": "^5"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" fill="none" viewBox="0 0 300 300"><g clip-path="url(#a)"><path fill="#0062FF" fill-rule="evenodd" d="M66.428 274.26c68.448 46.333 161.497 28.406 207.83-40.041 46.335-68.448 28.408-161.497-40.04-207.83C165.77-19.946 72.721-2.019 26.388 66.428-19.948 134.878-2.02 227.928 66.427 274.26ZM47.956 116.67c-17.119 52.593-11.412 105.223 11.29 139.703C18.04 217.361 7.275 150.307 36.943 92.318c18.971-37.082 50.623-62.924 85.556-73.97-31.909 18.363-59.945 53.466-74.544 98.322Zm127.391 166.467c36.03-10.531 68.864-36.752 88.338-74.815 29.416-57.497 19.083-123.905-21.258-163.055 21.793 34.496 27.046 86.275 10.204 138.02-15.016 46.134-44.246 81.952-77.284 99.85Zm8.28-16.908c24.318-20.811 44.389-55.625 53.309-97.439 14.097-66.097-4.385-127.592-41.824-148.113 19.858 26.718 29.91 78.613 23.712 136.656-4.739 44.391-18.01 83.26-35.197 108.896ZM63.717 131.844c-14.201 66.586 4.66 128.501 42.657 148.561-20.378-26.396-30.777-78.891-24.498-137.694 4.661-43.657 17.574-81.974 34.349-107.614-23.957 20.886-43.687 55.392-52.507 96.747Zm136.117 17.717c1.074 67.912-20.244 123.317-47.612 123.748-27.369.433-50.425-54.27-51.498-122.182-1.073-67.913 20.244-123.318 47.613-123.75 27.368-.432 50.425 54.271 51.497 122.184Z" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h300v300H0z"/></clipPath></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="none" d="M0 0h256v256H0z"/><path fill="none" stroke="currentColor" stroke-width="25" stroke-linecap="round" d="M208 128l-80 80M192 40L40 192"/></svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{PROJECT_NAME}}",
|
|
3
|
+
"short_name": "{{PROJECT_NAME}}",
|
|
4
|
+
"description": "{{PROJECT_DESCRIPTION}}",
|
|
5
|
+
"icons": [
|
|
6
|
+
{
|
|
7
|
+
"src": "/android-chrome-192x192.png",
|
|
8
|
+
"sizes": "192x192",
|
|
9
|
+
"type": "image/png"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"src": "/android-chrome-512x512.png",
|
|
13
|
+
"sizes": "512x512",
|
|
14
|
+
"type": "image/png"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"theme_color": "#ff5722",
|
|
18
|
+
"background_color": "#000000",
|
|
19
|
+
"display": "standalone",
|
|
20
|
+
"start_url": "/"
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { Config } from "tailwindcss";
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
darkMode: ["class", ".dark"],
|
|
5
|
+
content: [
|
|
6
|
+
"./pages/**/*.{ts,tsx}",
|
|
7
|
+
"./components/**/*.{ts,tsx}",
|
|
8
|
+
"./app/**/*.{ts,tsx}",
|
|
9
|
+
"./src/**/*.{ts,tsx}",
|
|
10
|
+
"*.{js,ts,jsx,tsx,mdx}",
|
|
11
|
+
],
|
|
12
|
+
prefix: "",
|
|
13
|
+
theme: {
|
|
14
|
+
container: {
|
|
15
|
+
center: true,
|
|
16
|
+
padding: "2rem",
|
|
17
|
+
screens: {
|
|
18
|
+
"2xl": "1400px",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
extend: {
|
|
22
|
+
colors: {
|
|
23
|
+
border: "hsl(var(--border))",
|
|
24
|
+
input: "hsl(var(--input))",
|
|
25
|
+
ring: "hsl(var(--ring))",
|
|
26
|
+
background: "hsl(var(--background))",
|
|
27
|
+
foreground: "hsl(var(--foreground))",
|
|
28
|
+
primary: {
|
|
29
|
+
DEFAULT: "hsl(var(--primary))",
|
|
30
|
+
foreground: "hsl(var(--primary-foreground))",
|
|
31
|
+
},
|
|
32
|
+
secondary: {
|
|
33
|
+
DEFAULT: "hsl(var(--secondary))",
|
|
34
|
+
foreground: "hsl(var(--secondary-foreground))",
|
|
35
|
+
},
|
|
36
|
+
destructive: {
|
|
37
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
38
|
+
foreground: "hsl(var(--destructive-foreground))",
|
|
39
|
+
},
|
|
40
|
+
muted: {
|
|
41
|
+
DEFAULT: "hsl(var(--muted))",
|
|
42
|
+
foreground: "hsl(var(--muted-foreground))",
|
|
43
|
+
},
|
|
44
|
+
accent: {
|
|
45
|
+
DEFAULT: "hsl(var(--accent))",
|
|
46
|
+
foreground: "hsl(var(--accent-foreground))",
|
|
47
|
+
},
|
|
48
|
+
popover: {
|
|
49
|
+
DEFAULT: "hsl(var(--popover))",
|
|
50
|
+
foreground: "hsl(var(--popover-foreground))",
|
|
51
|
+
},
|
|
52
|
+
card: {
|
|
53
|
+
DEFAULT: "hsl(var(--card))",
|
|
54
|
+
foreground: "hsl(var(--card-foreground))",
|
|
55
|
+
},
|
|
56
|
+
// Chart colors
|
|
57
|
+
chart: {
|
|
58
|
+
1: "hsl(var(--chart-1))",
|
|
59
|
+
2: "hsl(var(--chart-2))",
|
|
60
|
+
3: "hsl(var(--chart-3))",
|
|
61
|
+
4: "hsl(var(--chart-4))",
|
|
62
|
+
5: "hsl(var(--chart-5))",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
borderRadius: {
|
|
66
|
+
lg: "var(--radius)",
|
|
67
|
+
md: "calc(var(--radius) - 2px)",
|
|
68
|
+
sm: "calc(var(--radius) - 4px)",
|
|
69
|
+
},
|
|
70
|
+
keyframes: {
|
|
71
|
+
"accordion-down": {
|
|
72
|
+
from: { height: "0" },
|
|
73
|
+
to: { height: "var(--radix-accordion-content-height)" },
|
|
74
|
+
},
|
|
75
|
+
"accordion-up": {
|
|
76
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
77
|
+
to: { height: "0" },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
animation: {
|
|
81
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
82
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
// plugins: [require("tailwindcss-animate")],
|
|
87
|
+
} satisfies Config;
|
|
88
|
+
|
|
89
|
+
export default config;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nextjs-better-auth-polar",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"features": {
|
|
5
|
+
"auth": {
|
|
6
|
+
"enabled": true,
|
|
7
|
+
"required": true,
|
|
8
|
+
"optional": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"app/sign-in/**/*",
|
|
11
|
+
"app/sign-up/**/*",
|
|
12
|
+
"lib/auth.ts",
|
|
13
|
+
"lib/auth-client.ts",
|
|
14
|
+
"auth-schema.ts",
|
|
15
|
+
"middleware.ts"
|
|
16
|
+
],
|
|
17
|
+
"dependencies": [
|
|
18
|
+
"better-auth",
|
|
19
|
+
"@polar-sh/better-auth"
|
|
20
|
+
],
|
|
21
|
+
"envVars": [
|
|
22
|
+
"BETTER_AUTH_SECRET",
|
|
23
|
+
"GOOGLE_CLIENT_ID",
|
|
24
|
+
"GOOGLE_CLIENT_SECRET"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"database": {
|
|
28
|
+
"enabled": true,
|
|
29
|
+
"required": true,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"files": [
|
|
32
|
+
"db/**/*",
|
|
33
|
+
"drizzle.config.ts"
|
|
34
|
+
],
|
|
35
|
+
"dependencies": [
|
|
36
|
+
"@neondatabase/serverless",
|
|
37
|
+
"drizzle-orm"
|
|
38
|
+
],
|
|
39
|
+
"devDependencies": [
|
|
40
|
+
"drizzle-kit"
|
|
41
|
+
],
|
|
42
|
+
"envVars": [
|
|
43
|
+
"DATABASE_URL"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"payments": {
|
|
47
|
+
"enabled": false,
|
|
48
|
+
"required": false,
|
|
49
|
+
"optional": true,
|
|
50
|
+
"files": [
|
|
51
|
+
"app/dashboard/payment/**/*",
|
|
52
|
+
"app/success/**/*",
|
|
53
|
+
"app/api/subscription/**/*"
|
|
54
|
+
],
|
|
55
|
+
"dependencies": [
|
|
56
|
+
"@polar-sh/sdk"
|
|
57
|
+
],
|
|
58
|
+
"envVars": [
|
|
59
|
+
"POLAR_ACCESS_TOKEN",
|
|
60
|
+
"POLAR_SUCCESS_URL",
|
|
61
|
+
"POLAR_WEBHOOK_SECRET",
|
|
62
|
+
"NEXT_PUBLIC_STARTER_TIER",
|
|
63
|
+
"NEXT_PUBLIC_STARTER_SLUG"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"ai-chat": {
|
|
67
|
+
"enabled": false,
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": true,
|
|
70
|
+
"files": [
|
|
71
|
+
"app/dashboard/chat/**/*",
|
|
72
|
+
"app/api/chat/**/*",
|
|
73
|
+
"app/dashboard/_components/chatbot.tsx"
|
|
74
|
+
],
|
|
75
|
+
"dependencies": [
|
|
76
|
+
"@ai-sdk/openai",
|
|
77
|
+
"ai",
|
|
78
|
+
"react-markdown",
|
|
79
|
+
"remark-gfm"
|
|
80
|
+
],
|
|
81
|
+
"envVars": [
|
|
82
|
+
"OPENAI_API_KEY"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"file-upload": {
|
|
86
|
+
"enabled": false,
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"files": [
|
|
90
|
+
"app/dashboard/upload/**/*",
|
|
91
|
+
"app/api/upload-image/**/*",
|
|
92
|
+
"lib/upload-image.ts"
|
|
93
|
+
],
|
|
94
|
+
"dependencies": [
|
|
95
|
+
"@aws-sdk/client-s3",
|
|
96
|
+
"uploadthing",
|
|
97
|
+
"@uploadthing/react"
|
|
98
|
+
],
|
|
99
|
+
"envVars": [
|
|
100
|
+
"R2_UPLOAD_IMAGE_ACCESS_KEY_ID",
|
|
101
|
+
"R2_UPLOAD_IMAGE_SECRET_ACCESS_KEY",
|
|
102
|
+
"CLOUDFLARE_ACCOUNT_ID",
|
|
103
|
+
"R2_UPLOAD_IMAGE_BUCKET_NAME"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"analytics": {
|
|
107
|
+
"enabled": false,
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": true,
|
|
110
|
+
"files": [],
|
|
111
|
+
"dependencies": [
|
|
112
|
+
"posthog-js",
|
|
113
|
+
"posthog-node"
|
|
114
|
+
],
|
|
115
|
+
"envVars": [
|
|
116
|
+
"NEXT_PUBLIC_POSTHOG_KEY",
|
|
117
|
+
"NEXT_PUBLIC_POSTHOG_HOST"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"templateVariables": [
|
|
122
|
+
{
|
|
123
|
+
"key": "PROJECT_NAME",
|
|
124
|
+
"files": ["package.json", "README.md", "app/layout.tsx"],
|
|
125
|
+
"description": "Project name"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"key": "PROJECT_DESCRIPTION",
|
|
129
|
+
"files": ["package.json", "README.md", "app/layout.tsx"],
|
|
130
|
+
"description": "Project description"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "APP_URL",
|
|
134
|
+
"files": [".env.example"],
|
|
135
|
+
"description": "Application URL"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"paths": {
|
|
22
|
+
"@/*": ["./*"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
26
|
+
"exclude": ["node_modules"]
|
|
27
|
+
}
|