@digilogiclabs/create-saas-app 1.5.1 → 1.5.2

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 (289) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/cli/commands/add.d.ts +6 -0
  3. package/dist/cli/commands/add.d.ts.map +1 -0
  4. package/dist/cli/commands/add.js +39 -0
  5. package/dist/cli/commands/add.js.map +1 -0
  6. package/dist/cli/commands/create.d.ts +28 -0
  7. package/dist/cli/commands/create.d.ts.map +1 -0
  8. package/dist/cli/commands/create.js +130 -0
  9. package/dist/cli/commands/create.js.map +1 -0
  10. package/dist/cli/commands/index.d.ts +4 -0
  11. package/dist/cli/commands/index.d.ts.map +1 -0
  12. package/dist/cli/commands/index.js +20 -0
  13. package/dist/cli/commands/index.js.map +1 -0
  14. package/dist/cli/commands/update.d.ts +6 -0
  15. package/dist/cli/commands/update.d.ts.map +1 -0
  16. package/dist/cli/commands/update.js +68 -0
  17. package/dist/cli/commands/update.js.map +1 -0
  18. package/dist/{index.d.ts → cli/index.d.ts} +2 -3
  19. package/dist/cli/index.d.ts.map +1 -0
  20. package/dist/cli/index.js +59 -0
  21. package/dist/cli/index.js.map +1 -0
  22. package/dist/cli/prompts/index.d.ts +2 -0
  23. package/dist/cli/prompts/index.d.ts.map +1 -0
  24. package/dist/cli/prompts/index.js +18 -0
  25. package/dist/cli/prompts/index.js.map +1 -0
  26. package/dist/cli/prompts/project-setup.d.ts +5 -0
  27. package/dist/cli/prompts/project-setup.d.ts.map +1 -0
  28. package/dist/cli/prompts/project-setup.js +251 -0
  29. package/dist/cli/prompts/project-setup.js.map +1 -0
  30. package/dist/cli/utils/git.d.ts +9 -0
  31. package/dist/cli/utils/git.d.ts.map +1 -0
  32. package/dist/cli/utils/git.js +77 -0
  33. package/dist/cli/utils/git.js.map +1 -0
  34. package/dist/cli/utils/index.d.ts +5 -0
  35. package/dist/cli/utils/index.d.ts.map +1 -0
  36. package/dist/cli/utils/index.js +21 -0
  37. package/dist/cli/utils/index.js.map +1 -0
  38. package/dist/cli/utils/logger.d.ts +16 -0
  39. package/dist/cli/utils/logger.d.ts.map +1 -0
  40. package/dist/cli/utils/logger.js +55 -0
  41. package/dist/cli/utils/logger.js.map +1 -0
  42. package/dist/cli/utils/package-manager.d.ts +8 -0
  43. package/dist/cli/utils/package-manager.d.ts.map +1 -0
  44. package/dist/cli/utils/package-manager.js +92 -0
  45. package/dist/cli/utils/package-manager.js.map +1 -0
  46. package/dist/cli/utils/spinner.d.ts +7 -0
  47. package/dist/cli/utils/spinner.d.ts.map +1 -0
  48. package/dist/cli/utils/spinner.js +48 -0
  49. package/dist/cli/utils/spinner.js.map +1 -0
  50. package/dist/cli/validators/dependencies.d.ts +15 -0
  51. package/dist/cli/validators/dependencies.d.ts.map +1 -0
  52. package/dist/cli/validators/dependencies.js +108 -0
  53. package/dist/cli/validators/dependencies.js.map +1 -0
  54. package/dist/cli/validators/index.d.ts +3 -0
  55. package/dist/cli/validators/index.d.ts.map +1 -0
  56. package/dist/cli/validators/index.js +19 -0
  57. package/dist/cli/validators/index.js.map +1 -0
  58. package/dist/cli/validators/project-name.d.ts +5 -0
  59. package/dist/cli/validators/project-name.d.ts.map +1 -0
  60. package/dist/cli/validators/project-name.js +151 -0
  61. package/dist/cli/validators/project-name.js.map +1 -0
  62. package/dist/generators/file-processor.d.ts +28 -0
  63. package/dist/generators/file-processor.d.ts.map +1 -0
  64. package/dist/generators/file-processor.js +203 -0
  65. package/dist/generators/file-processor.js.map +1 -0
  66. package/dist/generators/index.d.ts +4 -0
  67. package/dist/generators/index.d.ts.map +1 -0
  68. package/dist/generators/index.js +20 -0
  69. package/dist/generators/index.js.map +1 -0
  70. package/dist/generators/package-installer.d.ts +29 -0
  71. package/dist/generators/package-installer.d.ts.map +1 -0
  72. package/dist/generators/package-installer.js +167 -0
  73. package/dist/generators/package-installer.js.map +1 -0
  74. package/dist/generators/template-generator.d.ts +48 -0
  75. package/dist/generators/template-generator.d.ts.map +1 -0
  76. package/dist/generators/template-generator.js +276 -0
  77. package/dist/generators/template-generator.js.map +1 -0
  78. package/dist/index.js +3 -3
  79. package/dist/index.js.map +1 -1
  80. package/package.json +3 -3
  81. package/src/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
  82. package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +1 -1
  83. package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +3 -3
  84. package/src/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
  85. package/src/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
  86. package/src/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +2 -105
  87. package/src/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +2 -124
  88. package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/components/client/login-form.tsx +1 -1
  89. package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/components/client/signup-form.tsx +3 -3
  90. package/src/templates/web/ui-auth-payments-audio/template/src/lib/actions/index.ts +14 -0
  91. package/src/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
  92. package/dist/templates/mobile/base/template/.env.example +0 -15
  93. package/dist/templates/mobile/base/template/App.tsx +0 -88
  94. package/dist/templates/mobile/base/template/app/(auth)/login.tsx +0 -44
  95. package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +0 -43
  96. package/dist/templates/mobile/base/template/app/checkout.tsx +0 -20
  97. package/dist/templates/mobile/base/template/package.json +0 -38
  98. package/dist/templates/shared/auth/firebase/web/config.ts +0 -23
  99. package/dist/templates/shared/auth/supabase/web/config.ts +0 -8
  100. package/dist/templates/web/base/template/.env.example +0 -15
  101. package/dist/templates/web/base/template/.eslintrc.js +0 -8
  102. package/dist/templates/web/base/template/README.md +0 -68
  103. package/dist/templates/web/base/template/next.config.js +0 -15
  104. package/dist/templates/web/base/template/package.json +0 -58
  105. package/dist/templates/web/base/template/postcss.config.js +0 -7
  106. package/dist/templates/web/base/template/src/app/auth/callback/route.ts +0 -18
  107. package/dist/templates/web/base/template/src/app/checkout/page.tsx +0 -28
  108. package/dist/templates/web/base/template/src/app/error.tsx +0 -97
  109. package/dist/templates/web/base/template/src/app/globals.css +0 -60
  110. package/dist/templates/web/base/template/src/app/layout.tsx +0 -35
  111. package/dist/templates/web/base/template/src/app/loading.tsx +0 -34
  112. package/dist/templates/web/base/template/src/app/login/page.tsx +0 -39
  113. package/dist/templates/web/base/template/src/app/page.tsx +0 -132
  114. package/dist/templates/web/base/template/src/app/signup/page.tsx +0 -39
  115. package/dist/templates/web/base/template/src/components/__tests__/example.test.tsx +0 -49
  116. package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +0 -33
  117. package/dist/templates/web/base/template/src/components/providers/theme-provider.tsx +0 -94
  118. package/dist/templates/web/base/template/src/components/shared/footer.tsx +0 -36
  119. package/dist/templates/web/base/template/src/components/shared/header.tsx +0 -44
  120. package/dist/templates/web/base/template/src/components/ui/badge.tsx +0 -36
  121. package/dist/templates/web/base/template/src/components/ui/button.tsx +0 -56
  122. package/dist/templates/web/base/template/src/components/ui/card.tsx +0 -71
  123. package/dist/templates/web/base/template/src/components/ui/theme-toggle.tsx +0 -34
  124. package/dist/templates/web/base/template/src/lib/env.ts +0 -46
  125. package/dist/templates/web/base/template/src/lib/utils.ts +0 -140
  126. package/dist/templates/web/base/template/src/test/setup.ts +0 -79
  127. package/dist/templates/web/base/template/tailwind.config.js +0 -77
  128. package/dist/templates/web/base/template/tsconfig.json +0 -33
  129. package/dist/templates/web/base/template/vitest.config.ts +0 -17
  130. package/dist/templates/web/base/template.backup/.env.example +0 -15
  131. package/dist/templates/web/base/template.backup.20250817/.env.example +0 -15
  132. package/dist/templates/web/ui-auth/template/.env.example +0 -15
  133. package/dist/templates/web/ui-auth/template/.eslintrc.js +0 -8
  134. package/dist/templates/web/ui-auth/template/README.md +0 -68
  135. package/dist/templates/web/ui-auth/template/next.config.js +0 -12
  136. package/dist/templates/web/ui-auth/template/package.json +0 -50
  137. package/dist/templates/web/ui-auth/template/postcss.config.js +0 -7
  138. package/dist/templates/web/ui-auth/template/src/app/auth/callback/route.ts +0 -12
  139. package/dist/templates/web/ui-auth/template/src/app/checkout/page.tsx +0 -25
  140. package/dist/templates/web/ui-auth/template/src/app/error.tsx +0 -67
  141. package/dist/templates/web/ui-auth/template/src/app/globals.css +0 -42
  142. package/dist/templates/web/ui-auth/template/src/app/layout.tsx +0 -33
  143. package/dist/templates/web/ui-auth/template/src/app/loading.tsx +0 -20
  144. package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +0 -109
  145. package/dist/templates/web/ui-auth/template/src/app/page.tsx +0 -129
  146. package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +0 -128
  147. package/dist/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +0 -49
  148. package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +0 -29
  149. package/dist/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +0 -94
  150. package/dist/templates/web/ui-auth/template/src/components/shared/footer.tsx +0 -36
  151. package/dist/templates/web/ui-auth/template/src/components/shared/header.tsx +0 -53
  152. package/dist/templates/web/ui-auth/template/src/components/ui/badge.tsx +0 -36
  153. package/dist/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +0 -34
  154. package/dist/templates/web/ui-auth/template/src/lib/env.ts +0 -49
  155. package/dist/templates/web/ui-auth/template/src/lib/utils.ts +0 -140
  156. package/dist/templates/web/ui-auth/template/src/test/setup.ts +0 -79
  157. package/dist/templates/web/ui-auth/template/tailwind.config.js +0 -77
  158. package/dist/templates/web/ui-auth/template/tsconfig.json +0 -33
  159. package/dist/templates/web/ui-auth/template/vitest.config.ts +0 -17
  160. package/dist/templates/web/ui-auth/template.backup/.env.example +0 -15
  161. package/dist/templates/web/ui-auth/template.backup.20250817/.env.example +0 -15
  162. package/dist/templates/web/ui-auth-payments/template/.env.example +0 -15
  163. package/dist/templates/web/ui-auth-payments/template/README.md +0 -165
  164. package/dist/templates/web/ui-auth-payments/template/next.config.js +0 -12
  165. package/dist/templates/web/ui-auth-payments/template/package.json +0 -52
  166. package/dist/templates/web/ui-auth-payments/template/postcss.config.js +0 -7
  167. package/dist/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +0 -12
  168. package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +0 -211
  169. package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +0 -142
  170. package/dist/templates/web/ui-auth-payments/template/src/app/error.tsx +0 -67
  171. package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +0 -42
  172. package/dist/templates/web/ui-auth-payments/template/src/app/layout.tsx +0 -33
  173. package/dist/templates/web/ui-auth-payments/template/src/app/loading.tsx +0 -20
  174. package/dist/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +0 -38
  175. package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +0 -109
  176. package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +0 -143
  177. package/dist/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +0 -50
  178. package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +0 -128
  179. package/dist/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +0 -49
  180. package/dist/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +0 -68
  181. package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +0 -32
  182. package/dist/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +0 -94
  183. package/dist/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +0 -36
  184. package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +0 -62
  185. package/dist/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +0 -36
  186. package/dist/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +0 -34
  187. package/dist/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +0 -340
  188. package/dist/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +0 -177
  189. package/dist/templates/web/ui-auth-payments/template/src/lib/env.ts +0 -49
  190. package/dist/templates/web/ui-auth-payments/template/src/lib/utils.ts +0 -140
  191. package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +0 -79
  192. package/dist/templates/web/ui-auth-payments/template/tailwind.config.js +0 -77
  193. package/dist/templates/web/ui-auth-payments/template/tsconfig.json +0 -33
  194. package/dist/templates/web/ui-auth-payments/template/vitest.config.ts +0 -17
  195. package/dist/templates/web/ui-auth-payments-audio/template/.env.example +0 -15
  196. package/dist/templates/web/ui-auth-payments-audio/template/README.md +0 -187
  197. package/dist/templates/web/ui-auth-payments-audio/template/next.config.js +0 -12
  198. package/dist/templates/web/ui-auth-payments-audio/template/package.json +0 -53
  199. package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.js +0 -7
  200. package/dist/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +0 -12
  201. package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +0 -211
  202. package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +0 -142
  203. package/dist/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +0 -67
  204. package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +0 -42
  205. package/dist/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +0 -35
  206. package/dist/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +0 -20
  207. package/dist/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +0 -109
  208. package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +0 -181
  209. package/dist/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +0 -128
  210. package/dist/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +0 -49
  211. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +0 -32
  212. package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +0 -94
  213. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +0 -36
  214. package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +0 -62
  215. package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +0 -36
  216. package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +0 -34
  217. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +0 -49
  218. package/dist/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +0 -140
  219. package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +0 -79
  220. package/dist/templates/web/ui-auth-payments-audio/template/tailwind.config.js +0 -77
  221. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.json +0 -33
  222. package/dist/templates/web/ui-auth-payments-audio/template/vitest.config.ts +0 -17
  223. package/dist/templates/web/ui-auth-payments-video/template/.env.example +0 -15
  224. package/dist/templates/web/ui-auth-payments-video/template/README.md +0 -190
  225. package/dist/templates/web/ui-auth-payments-video/template/next.config.js +0 -12
  226. package/dist/templates/web/ui-auth-payments-video/template/package.json +0 -53
  227. package/dist/templates/web/ui-auth-payments-video/template/postcss.config.js +0 -7
  228. package/dist/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +0 -12
  229. package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +0 -211
  230. package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +0 -142
  231. package/dist/templates/web/ui-auth-payments-video/template/src/app/error.tsx +0 -67
  232. package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +0 -42
  233. package/dist/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +0 -33
  234. package/dist/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +0 -20
  235. package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +0 -109
  236. package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +0 -187
  237. package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +0 -128
  238. package/dist/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +0 -49
  239. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +0 -32
  240. package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +0 -94
  241. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +0 -36
  242. package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +0 -62
  243. package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +0 -36
  244. package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +0 -34
  245. package/dist/templates/web/ui-auth-payments-video/template/src/lib/env.ts +0 -49
  246. package/dist/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +0 -140
  247. package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +0 -79
  248. package/dist/templates/web/ui-auth-payments-video/template/tailwind.config.js +0 -77
  249. package/dist/templates/web/ui-auth-payments-video/template/tsconfig.json +0 -33
  250. package/dist/templates/web/ui-auth-payments-video/template/vitest.config.ts +0 -17
  251. package/dist/templates/web/ui-only/template/.env.example +0 -15
  252. package/dist/templates/web/ui-only/template/.eslintrc.js +0 -8
  253. package/dist/templates/web/ui-only/template/README.md +0 -68
  254. package/dist/templates/web/ui-only/template/next.config.js +0 -12
  255. package/dist/templates/web/ui-only/template/package.json +0 -49
  256. package/dist/templates/web/ui-only/template/postcss.config.js +0 -7
  257. package/dist/templates/web/ui-only/template/src/app/auth/callback/route.ts +0 -12
  258. package/dist/templates/web/ui-only/template/src/app/checkout/page.tsx +0 -25
  259. package/dist/templates/web/ui-only/template/src/app/error.tsx +0 -67
  260. package/dist/templates/web/ui-only/template/src/app/globals.css +0 -42
  261. package/dist/templates/web/ui-only/template/src/app/layout.tsx +0 -33
  262. package/dist/templates/web/ui-only/template/src/app/loading.tsx +0 -20
  263. package/dist/templates/web/ui-only/template/src/app/login/page.tsx +0 -63
  264. package/dist/templates/web/ui-only/template/src/app/page.tsx +0 -91
  265. package/dist/templates/web/ui-only/template/src/app/signup/page.tsx +0 -79
  266. package/dist/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +0 -49
  267. package/dist/templates/web/ui-only/template/src/components/providers/app-providers.tsx +0 -26
  268. package/dist/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +0 -94
  269. package/dist/templates/web/ui-only/template/src/components/shared/footer.tsx +0 -36
  270. package/dist/templates/web/ui-only/template/src/components/shared/header.tsx +0 -53
  271. package/dist/templates/web/ui-only/template/src/components/ui/badge.tsx +0 -36
  272. package/dist/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +0 -34
  273. package/dist/templates/web/ui-only/template/src/lib/env.ts +0 -49
  274. package/dist/templates/web/ui-only/template/src/lib/utils.ts +0 -140
  275. package/dist/templates/web/ui-only/template/src/test/setup.ts +0 -79
  276. package/dist/templates/web/ui-only/template/tailwind.config.js +0 -77
  277. package/dist/templates/web/ui-only/template/tsconfig.json +0 -33
  278. package/dist/templates/web/ui-only/template/vitest.config.ts +0 -17
  279. package/dist/templates/web/ui-only/template.backup/.env.example +0 -15
  280. package/dist/templates/web/ui-only/template.backup.20250817/.env.example +0 -15
  281. package/dist/templates/web/ui-package-test/template/package.json +0 -42
  282. package/dist/templates/web/ui-package-test/template/src/app/page.tsx +0 -106
  283. package/dist/templates/web/ui-package-test/template/tsconfig.json +0 -41
  284. /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/middleware.ts +0 -0
  285. /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/app/dashboard/layout.tsx +0 -0
  286. /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/app/dashboard/page.tsx +0 -0
  287. /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/components/client/auth-status.tsx +0 -0
  288. /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/lib/actions/auth.ts +0 -0
  289. /package/{dist/templates/web/base → src/templates/web/ui-auth-payments-audio}/template/src/lib/auth-server.ts +0 -0
@@ -1,35 +0,0 @@
1
- import type { Metadata } from 'next'
2
- import { Inter } from 'next/font/google'
3
- import './globals.css'
4
- import { AppProviders } from '@/components/providers/app-providers'
5
- import { Header } from '@/components/shared/header'
6
- import { Footer } from '@/components/shared/footer'
7
-
8
- const inter = Inter({ subsets: ['latin'] })
9
-
10
- export const metadata: Metadata = {
11
- title: '{{titleCaseName}}',
12
- description: '{{description}}',
13
- }
14
-
15
- export default function RootLayout({
16
- children,
17
- }: {
18
- children: React.ReactNode
19
- }) {
20
- return (
21
- <html lang="en" suppressHydrationWarning>
22
- <body className={inter.className}>
23
- <AppProviders>
24
- <div className="min-h-screen flex flex-col">
25
- <Header />
26
- <main className="flex-1">
27
- {children}
28
- </main>
29
- <Footer />
30
- </div>
31
- </AppProviders>
32
- </body>
33
- </html>
34
- )
35
- }
@@ -1,34 +0,0 @@
1
- import { Card } from '@digilogiclabs/saas-factory-ui'
2
-
3
- export default function Loading() {
4
- return (
5
- <div className="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800 flex items-center justify-center">
6
- <Card className="p-8 max-w-sm w-full mx-4">
7
- <div className="flex flex-col items-center space-y-4">
8
- {/* Animated spinner */}
9
- <div className="relative">
10
- <div className="w-12 h-12 border-4 border-gray-200 dark:border-gray-700 rounded-full animate-spin"></div>
11
- <div className="absolute top-0 left-0 w-12 h-12 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"></div>
12
- </div>
13
-
14
- {/* Loading text */}
15
- <div className="text-center">
16
- <h2 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">
17
- Loading...
18
- </h2>
19
- <p className="text-sm text-gray-600 dark:text-gray-300">
20
- Please wait while we prepare your content
21
- </p>
22
- </div>
23
-
24
- {/* Pulsing dots */}
25
- <div className="flex space-x-1">
26
- <div className="w-2 h-2 bg-blue-600 rounded-full animate-pulse"></div>
27
- <div className="w-2 h-2 bg-blue-600 rounded-full animate-pulse" style={{ animationDelay: '0.2s' }}></div>
28
- <div className="w-2 h-2 bg-blue-600 rounded-full animate-pulse" style={{ animationDelay: '0.4s' }}></div>
29
- </div>
30
- </div>
31
- </Card>
32
- </div>
33
- )
34
- }
@@ -1,39 +0,0 @@
1
- 'use client';
2
-
3
- import { LoginForm } from '@digilogiclabs/saas-factory-ui';
4
- import { AuthProvider } from '@digilogiclabs/saas-factory-auth';
5
- import { createBrowserClient } from '@supabase/ssr';
6
- import React from 'react';
7
-
8
- export default function LoginPage() {
9
- const supabase = createBrowserClient(
10
- process.env.NEXT_PUBLIC_SUPABASE_URL!,
11
- process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
12
- );
13
-
14
- const handleLogin = async (values: any) => {
15
- await supabase.auth.signInWithPassword({
16
- email: values.email,
17
- password: values.password,
18
- });
19
- };
20
-
21
- const handleGoogleLogin = async () => {
22
- await supabase.auth.signInWithOAuth({
23
- provider: 'google',
24
- options: {
25
- redirectTo: `${location.origin}/auth/callback`,
26
- },
27
- });
28
- };
29
-
30
- return (
31
- <div className="flex items-center justify-center min-h-screen bg-gray-100">
32
- <LoginForm
33
- onSubmit={handleLogin}
34
- onGoogleSignIn={handleGoogleLogin}
35
- authProvider={AuthProvider.SUPABASE}
36
- />
37
- </div>
38
- );
39
- }
@@ -1,132 +0,0 @@
1
- 'use client'
2
-
3
- import { Button } from '@/components/ui/button'
4
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
5
- import { Badge } from '@/components/ui/badge'
6
- import { ArrowRight, Zap, Shield, Rocket, LogOut } from 'lucide-react'
7
- import { useAuth } from '@digilogiclabs/saas-factory-auth'
8
- import Link from 'next/link'
9
-
10
- export default function Home() {
11
- const { user, signOut } = useAuth()
12
-
13
- return (
14
- <main className="min-h-screen bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800">
15
- <div className="container mx-auto px-4 py-16">
16
- {/* Hero Section */}
17
- <div className="text-center mb-16">
18
- <Badge variant="secondary" className="mb-4">
19
- Built with Digi Logic Labs
20
- </Badge>
21
- <h1 className="text-4xl md:text-6xl font-bold text-gray-900 dark:text-white mb-6">
22
- Welcome to{' '}
23
- <span className="text-blue-600 dark:text-blue-400">{{titleCaseName}}</span>
24
- </h1>
25
- <p className="text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-2xl mx-auto">
26
- {{description}}. Get started by editing{' '}
27
- <code className="bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded text-sm">
28
- src/app/page.tsx
29
- </code>
30
- </p>
31
- <div className="flex flex-col sm:flex-row gap-4 justify-center">
32
- {!user ? (
33
- <>
34
- <Button size="lg" className="text-lg px-8" asChild>
35
- <Link href="/signup">
36
- Get Started
37
- <ArrowRight className="ml-2 h-5 w-5" />
38
- </Link>
39
- </Button>
40
- <Button variant="outline" size="lg" className="text-lg px-8" asChild>
41
- <Link href="/login">Learn More</Link>
42
- </Button>
43
- </>
44
- ) : (
45
- <>
46
- <Button size="lg" className="text-lg px-8" asChild>
47
- <Link href="/dashboard">
48
- Go to Dashboard
49
- <ArrowRight className="ml-2 h-5 w-5" />
50
- </Link>
51
- </Button>
52
- <Button variant="outline" size="lg" className="text-lg px-8" onClick={signOut}>
53
- <LogOut className="mr-2 h-5 w-5" />
54
- Sign Out
55
- </Button>
56
- </>
57
- )}
58
- </div>
59
- </div>
60
-
61
- {/* Features Grid */}
62
- <div className="grid md:grid-cols-3 gap-8 mb-16">
63
- <Card className="text-center">
64
- <CardHeader>
65
- <div className="mx-auto w-12 h-12 bg-blue-100 dark:bg-blue-900 rounded-lg flex items-center justify-center mb-4">
66
- <Zap className="h-6 w-6 text-blue-600 dark:text-blue-400" />
67
- </div>
68
- <CardTitle>Lightning Fast</CardTitle>
69
- <CardDescription>
70
- Built with Next.js 14 and optimized for performance
71
- </CardDescription>
72
- </CardHeader>
73
- </Card>
74
-
75
- <Card className="text-center">
76
- <CardHeader>
77
- <div className="mx-auto w-12 h-12 bg-green-100 dark:bg-green-900 rounded-lg flex items-center justify-center mb-4">
78
- <Shield className="h-6 w-6 text-green-600 dark:text-green-400" />
79
- </div>
80
- <CardTitle>Secure by Default</CardTitle>
81
- <CardDescription>
82
- {{#auth}}{{#firebase}}Firebase{{/firebase}}{{#supabase}}Supabase{{/supabase}}{{/auth}} authentication and security best practices
83
- </CardDescription>
84
- </CardHeader>
85
- </Card>
86
-
87
- <Card className="text-center">
88
- <CardHeader>
89
- <div className="mx-auto w-12 h-12 bg-purple-100 dark:bg-purple-900 rounded-lg flex items-center justify-center mb-4">
90
- <Rocket className="h-6 w-6 text-purple-600 dark:text-purple-400" />
91
- </div>
92
- <CardTitle>Ready to Scale</CardTitle>
93
- <CardDescription>
94
- Production-ready with TypeScript, Tailwind CSS, and modern tooling
95
- </CardDescription>
96
- </CardHeader>
97
- </Card>
98
- </div>
99
-
100
- {/* Tech Stack */}
101
- <Card className="max-w-4xl mx-auto">
102
- <CardHeader className="text-center">
103
- <CardTitle className="text-2xl">Built with Modern Technologies</CardTitle>
104
- <CardDescription>
105
- This template includes everything you need to build a modern SaaS application
106
- </CardDescription>
107
- </CardHeader>
108
- <CardContent>
109
- <div className="grid grid-cols-2 md:grid-cols-4 gap-4 text-center">
110
- <div className="p-4">
111
- <div className="font-semibold">Next.js 14</div>
112
- <div className="text-sm text-gray-600 dark:text-gray-400">React Framework</div>
113
- </div>
114
- <div className="p-4">
115
- <div className="font-semibold">TypeScript</div>
116
- <div className="text-sm text-gray-600 dark:text-gray-400">Type Safety</div>
117
- </div>
118
- <div className="p-4">
119
- <div className="font-semibold">Tailwind CSS</div>
120
- <div className="text-sm text-gray-600 dark:text-gray-400">Styling</div>
121
- </div>
122
- <div className="p-4">
123
- <div className="font-semibold">{{#auth}}{{#firebase}}Firebase{{/firebase}}{{#supabase}}Supabase{{/supabase}}{{/auth}}</div>
124
- <div className="text-sm text-gray-600 dark:text-gray-400">Authentication</div>
125
- </div>
126
- </div>
127
- </CardContent>
128
- </Card>
129
- </div>
130
- </main>
131
- )
132
- }
@@ -1,39 +0,0 @@
1
- 'use client';
2
-
3
- import { SignupForm } from '@digilogiclabs/saas-factory-ui';
4
- import { AuthProvider } from '@digilogiclabs/saas-factory-auth';
5
- import { createBrowserClient } from '@supabase/ssr';
6
- import React from 'react';
7
-
8
- export default function SignupPage() {
9
- const supabase = createBrowserClient(
10
- process.env.NEXT_PUBLIC_SUPABASE_URL!,
11
- process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
12
- );
13
-
14
- const handleSignup = async (values: any) => {
15
- await supabase.auth.signUp({
16
- email: values.email,
17
- password: values.password,
18
- });
19
- };
20
-
21
- const handleGoogleSignup = async () => {
22
- await supabase.auth.signInWithOAuth({
23
- provider: 'google',
24
- options: {
25
- redirectTo: `${location.origin}/auth/callback`,
26
- },
27
- });
28
- };
29
-
30
- return (
31
- <div className="flex items-center justify-center min-h-screen bg-gray-100">
32
- <SignupForm
33
- onSubmit={handleSignup}
34
- onGoogleSignIn={handleGoogleSignup}
35
- authProvider={AuthProvider.SUPABASE}
36
- />
37
- </div>
38
- );
39
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * Example test file demonstrating testing patterns for SaaS Factory components
3
- *
4
- * This is optional and serves as a reference for testing your components.
5
- * You can delete this file if you don't need example tests.
6
- */
7
-
8
- import { render, screen } from '@testing-library/react'
9
- import { Button } from '@digilogiclabs/saas-factory-ui'
10
-
11
- // Example: Testing UI components
12
- describe('UI Components', () => {
13
- it('renders button with correct text', () => {
14
- render(<Button>Click me</Button>)
15
- expect(screen.getByRole('button', { name: /click me/i })).toBeInTheDocument()
16
- })
17
-
18
- it('button can be disabled', () => {
19
- render(<Button disabled>Disabled button</Button>)
20
- expect(screen.getByRole('button')).toBeDisabled()
21
- })
22
- })
23
-
24
- // Example: Testing custom components
25
- function MockComponent({ title }: { title: string }) {
26
- return <h1>{title}</h1>
27
- }
28
-
29
- describe('Custom Components', () => {
30
- it('renders with correct title', () => {
31
- render(<MockComponent title="Test Title" />)
32
- expect(screen.getByRole('heading', { level: 1 })).toHaveTextContent('Test Title')
33
- })
34
- })
35
-
36
- // Example: Testing utilities
37
- function formatCurrency(amount: number): string {
38
- return new Intl.NumberFormat('en-US', {
39
- style: 'currency',
40
- currency: 'USD',
41
- }).format(amount)
42
- }
43
-
44
- describe('Utilities', () => {
45
- it('formats currency correctly', () => {
46
- expect(formatCurrency(1000)).toBe('$1,000.00')
47
- expect(formatCurrency(0)).toBe('$0.00')
48
- })
49
- })
@@ -1,33 +0,0 @@
1
- 'use client'
2
-
3
- import React from 'react'
4
- import { AuthProvider } from '@digilogiclabs/saas-factory-auth'
5
- import { ThemeProvider } from 'next-themes'
6
- import { StripeProvider } from '@digilogiclabs/saas-factory-payments'
7
- import { AppThemeProvider } from './theme-provider'
8
-
9
- interface AppProvidersProps {
10
- children: React.ReactNode
11
- }
12
-
13
- export function AppProviders({ children }: AppProvidersProps) {
14
- return (
15
- <AuthProvider provider="supabase">
16
- <StripeProvider
17
- stripeKey={process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!}
18
- >
19
- <ThemeProvider
20
- attribute="class"
21
- defaultTheme="{{defaultTheme}}"
22
- enableSystem
23
- disableTransitionOnChange
24
- storageKey="{{packageName}}-theme"
25
- >
26
- <AppThemeProvider themeColor="{{themeColor}}">
27
- {children}
28
- </AppThemeProvider>
29
- </ThemeProvider>
30
- </StripeProvider>
31
- </AuthProvider>
32
- )
33
- }
@@ -1,94 +0,0 @@
1
- 'use client'
2
-
3
- import React, { createContext, useContext, useEffect } from 'react'
4
-
5
- interface ThemeContextType {
6
- themeColor: string
7
- }
8
-
9
- const ThemeContext = createContext<ThemeContextType | undefined>(undefined)
10
-
11
- interface AppThemeProviderProps {
12
- children: React.ReactNode
13
- themeColor: string
14
- }
15
-
16
- const THEME_COLORS = {
17
- blue: {
18
- primary: '221.2 83.2% 53.3%',
19
- primaryForeground: '210 40% 98%',
20
- secondary: '210 40% 96%',
21
- accent: '210 40% 96%',
22
- ring: '221.2 83.2% 53.3%',
23
- },
24
- green: {
25
- primary: '142.1 76.2% 36.3%',
26
- primaryForeground: '355.7 100% 97.3%',
27
- secondary: '138.5 76.2% 96.7%',
28
- accent: '138.5 76.2% 96.7%',
29
- ring: '142.1 76.2% 36.3%',
30
- },
31
- purple: {
32
- primary: '262.1 83.3% 57.8%',
33
- primaryForeground: '210 40% 98%',
34
- secondary: '270 3.18% 96.5%',
35
- accent: '270 3.18% 96.5%',
36
- ring: '262.1 83.3% 57.8%',
37
- },
38
- orange: {
39
- primary: '24.6 95% 53.1%',
40
- primaryForeground: '60 9.1% 97.8%',
41
- secondary: '60 4.8% 95.9%',
42
- accent: '60 4.8% 95.9%',
43
- ring: '24.6 95% 53.1%',
44
- },
45
- red: {
46
- primary: '0 72.2% 50.6%',
47
- primaryForeground: '0 85.7% 97.3%',
48
- secondary: '0 0% 96.3%',
49
- accent: '0 0% 96.3%',
50
- ring: '0 72.2% 50.6%',
51
- },
52
- slate: {
53
- primary: '215 27.9% 16.9%',
54
- primaryForeground: '0 0% 98%',
55
- secondary: '210 40% 96%',
56
- accent: '210 40% 96%',
57
- ring: '215 27.9% 16.9%',
58
- },
59
- }
60
-
61
- export function AppThemeProvider({ children, themeColor }: AppThemeProviderProps) {
62
- useEffect(() => {
63
- const colorScheme = THEME_COLORS[themeColor as keyof typeof THEME_COLORS] || THEME_COLORS.blue
64
-
65
- // Apply theme colors to CSS custom properties
66
- const root = document.documentElement
67
- root.style.setProperty('--primary', colorScheme.primary)
68
- root.style.setProperty('--primary-foreground', colorScheme.primaryForeground)
69
- root.style.setProperty('--secondary', colorScheme.secondary)
70
- root.style.setProperty('--accent', colorScheme.accent)
71
- root.style.setProperty('--ring', colorScheme.ring)
72
-
73
- // Store theme color preference
74
- localStorage.setItem('{{packageName}}-theme-color', themeColor)
75
- }, [themeColor])
76
-
77
- const contextValue: ThemeContextType = {
78
- themeColor,
79
- }
80
-
81
- return (
82
- <ThemeContext.Provider value={contextValue}>
83
- {children}
84
- </ThemeContext.Provider>
85
- )
86
- }
87
-
88
- export function useAppTheme() {
89
- const context = useContext(ThemeContext)
90
- if (context === undefined) {
91
- throw new Error('useAppTheme must be used within a AppThemeProvider')
92
- }
93
- return context
94
- }
@@ -1,36 +0,0 @@
1
- 'use client'
2
-
3
- import React from 'react'
4
-
5
- interface FooterProps {
6
- className?: string
7
- }
8
-
9
- export function Footer({ className = '' }: FooterProps) {
10
- return (
11
- <footer className={`border-t bg-background py-4 ${className}`}>
12
- <div className="container mx-auto px-4">
13
- <div className="flex flex-col sm:flex-row justify-between items-center gap-4 text-sm text-muted-foreground">
14
- <div className="flex items-center gap-2">
15
- <span>&copy; {new Date().getFullYear()} {{titleCaseName}}</span>
16
- </div>
17
-
18
- <div className="flex items-center gap-2 text-xs">
19
- <span>Generated with</span>
20
- <a
21
- href="https://docs.digilogiclabs.com"
22
- target="_blank"
23
- rel="noopener noreferrer"
24
- className="hover:text-foreground transition-colors"
25
- >
26
- Digi Logic Labs
27
- </a>
28
- <span className="text-muted-foreground/60">
29
- • UI v{{uiVersion}} • Auth v{{authVersion}} • {{generatedDate}}
30
- </span>
31
- </div>
32
- </div>
33
- </div>
34
- </footer>
35
- )
36
- }
@@ -1,44 +0,0 @@
1
- 'use client';
2
-
3
- import React from 'react';
4
- import Link from 'next/link';
5
- import { useAuth } from '@digilogiclabs/saas-factory-auth';
6
- import { Button } from '@/components/ui/button';
7
- import { ThemeToggle } from '@/components/ui/theme-toggle';
8
- import { LogOut } from 'lucide-react';
9
-
10
- export function Header() {
11
- const { user, signOut } = useAuth();
12
-
13
- return (
14
- <header className="bg-white dark:bg-gray-800 shadow-md">
15
- <div className="container mx-auto px-4 py-4 flex justify-between items-center">
16
- <Link href="/" className="text-2xl font-bold text-gray-900 dark:text-white">
17
- {{titleCaseName}}
18
- </Link>
19
- <nav className="flex items-center gap-4">
20
- <ThemeToggle />
21
- {user ? (
22
- <>
23
- <Link href="/dashboard" className="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
24
- Dashboard
25
- </Link>
26
- <Button variant="ghost" size="icon" onClick={signOut}>
27
- <LogOut className="h-5 w-5" />
28
- </Button>
29
- </>
30
- ) : (
31
- <>
32
- <Link href="/login" className="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white">
33
- Login
34
- </Link>
35
- <Button asChild>
36
- <Link href="/signup">Sign Up</Link>
37
- </Button>
38
- </>
39
- )}
40
- </nav>
41
- </div>
42
- </header>
43
- );
44
- }
@@ -1,36 +0,0 @@
1
- import * as React from "react"
2
- import { cva, type VariantProps } from "class-variance-authority"
3
- import { cn } from "@/lib/utils"
4
-
5
- const badgeVariants = cva(
6
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
7
- {
8
- variants: {
9
- variant: {
10
- default:
11
- "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
12
- secondary:
13
- "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
14
- destructive:
15
- "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
16
- outline: "text-foreground",
17
- },
18
- },
19
- defaultVariants: {
20
- variant: "default",
21
- },
22
- }
23
- )
24
-
25
- export interface BadgeProps
26
- extends React.HTMLAttributes<HTMLDivElement>,
27
- VariantProps<typeof badgeVariants> {}
28
-
29
- function Badge({ className, variant, ...props }: BadgeProps) {
30
- return (
31
- <div className={cn(badgeVariants({ variant }), className)} {...props} />
32
- )
33
- }
34
-
35
- export { Badge, badgeVariants }
36
-
@@ -1,56 +0,0 @@
1
- import * as React from "react"
2
- import { Slot } from "@radix-ui/react-slot"
3
- import { cva, type VariantProps } from "class-variance-authority"
4
- import { cn } from "@/lib/utils"
5
-
6
- const buttonVariants = cva(
7
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
8
- {
9
- variants: {
10
- variant: {
11
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
12
- destructive:
13
- "bg-destructive text-destructive-foreground hover:bg-destructive/90",
14
- outline:
15
- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
16
- secondary:
17
- "bg-secondary text-secondary-foreground hover:bg-secondary/80",
18
- ghost: "hover:bg-accent hover:text-accent-foreground",
19
- link: "text-primary underline-offset-4 hover:underline",
20
- },
21
- size: {
22
- default: "h-10 px-4 py-2",
23
- sm: "h-9 rounded-md px-3",
24
- lg: "h-11 rounded-md px-8",
25
- icon: "h-10 w-10",
26
- },
27
- },
28
- defaultVariants: {
29
- variant: "default",
30
- size: "default",
31
- },
32
- }
33
- )
34
-
35
- export interface ButtonProps
36
- extends React.ButtonHTMLAttributes<HTMLButtonElement>,
37
- VariantProps<typeof buttonVariants> {
38
- asChild?: boolean
39
- }
40
-
41
- const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
42
- ({ className, variant, size, asChild = false, ...props }, ref) => {
43
- const Comp = asChild ? Slot : "button"
44
- return (
45
- <Comp
46
- className={cn(buttonVariants({ variant, size, className }))}
47
- ref={ref}
48
- {...props}
49
- />
50
- )
51
- }
52
- )
53
- Button.displayName = "Button"
54
-
55
- export { Button, buttonVariants }
56
-