@digilogiclabs/create-saas-app 2.9.1 → 2.10.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.
Files changed (323) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generators/template-generator.d.ts.map +1 -1
  3. package/dist/generators/template-generator.js +6 -3
  4. package/dist/generators/template-generator.js.map +1 -1
  5. package/dist/templates/shared/auth/supabase/web/src/middleware.ts +63 -0
  6. package/dist/templates/shared/database/supabase/web/src/lib/supabase/server.ts +3 -1
  7. package/dist/templates/shared/design/web/src/config/design.config.ts +14 -14
  8. package/dist/templates/shared/landing/web/src/components/LandingPage.tsx +0 -3
  9. package/dist/templates/shared/security/web/src/lib/api-security.ts +2 -2
  10. package/dist/templates/web/ai-platform/template/next.config.js +14 -14
  11. package/dist/templates/web/ai-platform/template/package.json +11 -22
  12. package/dist/templates/web/ai-platform/template/postcss.config.mjs +8 -0
  13. package/dist/templates/web/ai-platform/template/src/app/chat/page.tsx +234 -235
  14. package/dist/templates/web/ai-platform/template/src/app/dashboard/page.tsx +142 -142
  15. package/dist/templates/web/ai-platform/template/src/app/error.tsx +13 -13
  16. package/dist/templates/web/ai-platform/template/src/app/globals.css +97 -34
  17. package/dist/templates/web/ai-platform/template/src/app/layout.tsx +3 -0
  18. package/dist/templates/web/ai-platform/template/src/app/loading.tsx +22 -22
  19. package/dist/templates/web/ai-platform/template/src/app/page.tsx +248 -154
  20. package/dist/templates/web/ai-platform/template/src/lib/auth-server.ts +32 -33
  21. package/dist/templates/web/base/template/next.config.js +14 -15
  22. package/dist/templates/web/base/template/package.json +16 -31
  23. package/dist/templates/web/base/template/postcss.config.mjs +8 -0
  24. package/dist/templates/web/base/template/src/app/error.tsx +97 -97
  25. package/dist/templates/web/base/template/src/app/globals.css +87 -148
  26. package/dist/templates/web/base/template/src/app/layout.tsx +4 -1
  27. package/dist/templates/web/base/template/src/app/loading.tsx +52 -52
  28. package/dist/templates/web/base/template/tsconfig.json +27 -33
  29. package/dist/templates/web/iot-dashboard/template/next.config.js +14 -14
  30. package/dist/templates/web/iot-dashboard/template/package.json +12 -16
  31. package/dist/templates/web/iot-dashboard/template/postcss.config.mjs +8 -0
  32. package/dist/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +224 -224
  33. package/dist/templates/web/iot-dashboard/template/src/app/error.tsx +8 -8
  34. package/dist/templates/web/iot-dashboard/template/src/app/globals.css +97 -20
  35. package/dist/templates/web/iot-dashboard/template/src/app/layout.tsx +3 -0
  36. package/dist/templates/web/iot-dashboard/template/src/app/loading.tsx +5 -5
  37. package/dist/templates/web/iot-dashboard/template/src/app/page.tsx +266 -189
  38. package/dist/templates/web/iot-dashboard/template/src/lib/auth-server.ts +32 -33
  39. package/dist/templates/web/marketplace/template/next.config.js +14 -14
  40. package/dist/templates/web/marketplace/template/package.json +11 -18
  41. package/dist/templates/web/marketplace/template/postcss.config.mjs +8 -0
  42. package/dist/templates/web/marketplace/template/src/app/cart/page.tsx +147 -147
  43. package/dist/templates/web/marketplace/template/src/app/dashboard/page.tsx +149 -149
  44. package/dist/templates/web/marketplace/template/src/app/error.tsx +7 -7
  45. package/dist/templates/web/marketplace/template/src/app/globals.css +97 -20
  46. package/dist/templates/web/marketplace/template/src/app/layout.tsx +3 -0
  47. package/dist/templates/web/marketplace/template/src/app/loading.tsx +5 -5
  48. package/dist/templates/web/marketplace/template/src/app/page.tsx +370 -169
  49. package/dist/templates/web/marketplace/template/src/app/products/page.tsx +129 -129
  50. package/dist/templates/web/marketplace/template/src/lib/auth-server.ts +32 -33
  51. package/dist/templates/web/micro-saas/template/next.config.js +14 -14
  52. package/dist/templates/web/micro-saas/template/package.json +9 -8
  53. package/dist/templates/web/micro-saas/template/postcss.config.mjs +8 -0
  54. package/dist/templates/web/micro-saas/template/src/app/dashboard/page.tsx +145 -117
  55. package/dist/templates/web/micro-saas/template/src/app/error.tsx +7 -7
  56. package/dist/templates/web/micro-saas/template/src/app/globals.css +97 -20
  57. package/dist/templates/web/micro-saas/template/src/app/layout.tsx +3 -0
  58. package/dist/templates/web/micro-saas/template/src/app/loading.tsx +43 -27
  59. package/dist/templates/web/micro-saas/template/src/app/login/page.tsx +101 -87
  60. package/dist/templates/web/micro-saas/template/src/app/page.tsx +227 -137
  61. package/dist/templates/web/micro-saas/template/src/app/signup/page.tsx +122 -108
  62. package/dist/templates/web/micro-saas/template/src/lib/auth-server.ts +32 -33
  63. package/dist/templates/web/ui-auth/template/next.config.js +14 -12
  64. package/dist/templates/web/ui-auth/template/package.json +16 -26
  65. package/dist/templates/web/ui-auth/template/postcss.config.mjs +8 -0
  66. package/dist/templates/web/ui-auth/template/src/app/error.tsx +67 -67
  67. package/dist/templates/web/ui-auth/template/src/app/globals.css +85 -84
  68. package/dist/templates/web/ui-auth/template/src/app/layout.tsx +4 -1
  69. package/dist/templates/web/ui-auth/template/src/app/loading.tsx +20 -38
  70. package/dist/templates/web/ui-auth/template/tsconfig.json +27 -33
  71. package/dist/templates/web/ui-auth-ai/template/next.config.js +15 -13
  72. package/dist/templates/web/ui-auth-ai/template/package.json +25 -21
  73. package/dist/templates/web/ui-auth-ai/template/postcss.config.mjs +8 -0
  74. package/dist/templates/web/ui-auth-ai/template/src/app/error.tsx +7 -7
  75. package/dist/templates/web/ui-auth-ai/template/src/app/globals.css +87 -25
  76. package/dist/templates/web/ui-auth-ai/template/src/app/layout.tsx +3 -0
  77. package/dist/templates/web/ui-auth-ai/template/src/app/loading.tsx +4 -4
  78. package/dist/templates/web/ui-auth-ai/template/tsconfig.json +27 -28
  79. package/dist/templates/web/ui-auth-payments/template/next.config.js +14 -12
  80. package/dist/templates/web/ui-auth-payments/template/package.json +16 -29
  81. package/dist/templates/web/ui-auth-payments/template/postcss.config.mjs +8 -0
  82. package/dist/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -67
  83. package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +89 -204
  84. package/dist/templates/web/ui-auth-payments/template/src/app/layout.tsx +4 -1
  85. package/dist/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -20
  86. package/dist/templates/web/ui-auth-payments/template/tsconfig.json +27 -33
  87. package/dist/templates/web/ui-auth-payments-ai/template/next.config.js +14 -12
  88. package/dist/templates/web/ui-auth-payments-ai/template/package.json +17 -33
  89. package/dist/templates/web/ui-auth-payments-ai/template/postcss.config.mjs +8 -0
  90. package/dist/templates/web/ui-auth-payments-ai/template/src/app/error.tsx +67 -67
  91. package/dist/templates/web/ui-auth-payments-ai/template/src/app/globals.css +85 -85
  92. package/dist/templates/web/ui-auth-payments-ai/template/src/app/layout.tsx +4 -1
  93. package/dist/templates/web/ui-auth-payments-ai/template/src/app/loading.tsx +20 -20
  94. package/dist/templates/web/ui-auth-payments-ai/template/tsconfig.json +27 -33
  95. package/dist/templates/web/ui-auth-payments-audio/template/next.config.js +14 -12
  96. package/dist/templates/web/ui-auth-payments-audio/template/package.json +17 -30
  97. package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.mjs +8 -0
  98. package/dist/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -67
  99. package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +85 -85
  100. package/dist/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +4 -1
  101. package/dist/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -20
  102. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.json +27 -33
  103. package/dist/templates/web/ui-auth-payments-video/template/next.config.js +14 -12
  104. package/dist/templates/web/ui-auth-payments-video/template/package.json +17 -30
  105. package/dist/templates/web/ui-auth-payments-video/template/postcss.config.mjs +8 -0
  106. package/dist/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -67
  107. package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +89 -221
  108. package/dist/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +4 -1
  109. package/dist/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -20
  110. package/dist/templates/web/ui-auth-payments-video/template/tsconfig.json +27 -33
  111. package/dist/templates/web/ui-only/template/next.config.js +14 -12
  112. package/dist/templates/web/ui-only/template/package.json +15 -25
  113. package/dist/templates/web/ui-only/template/postcss.config.mjs +8 -0
  114. package/dist/templates/web/ui-only/template/src/app/error.tsx +67 -67
  115. package/dist/templates/web/ui-only/template/src/app/globals.css +85 -31
  116. package/dist/templates/web/ui-only/template/src/app/layout.tsx +4 -1
  117. package/dist/templates/web/ui-only/template/src/app/loading.tsx +20 -20
  118. package/dist/templates/web/ui-only/template/tsconfig.json +27 -33
  119. package/package.json +1 -1
  120. package/src/templates/shared/auth/supabase/web/src/middleware.ts +63 -0
  121. package/src/templates/shared/database/supabase/web/src/lib/supabase/server.ts +3 -1
  122. package/src/templates/shared/design/web/src/config/design.config.ts +14 -14
  123. package/src/templates/shared/landing/web/src/components/LandingPage.tsx +0 -3
  124. package/src/templates/shared/security/web/src/lib/api-security.ts +2 -2
  125. package/src/templates/web/ai-platform/template/next.config.js +14 -14
  126. package/src/templates/web/ai-platform/template/package.json +11 -22
  127. package/src/templates/web/ai-platform/template/postcss.config.mjs +8 -0
  128. package/src/templates/web/ai-platform/template/src/app/chat/page.tsx +234 -235
  129. package/src/templates/web/ai-platform/template/src/app/dashboard/page.tsx +142 -142
  130. package/src/templates/web/ai-platform/template/src/app/error.tsx +13 -13
  131. package/src/templates/web/ai-platform/template/src/app/globals.css +97 -34
  132. package/src/templates/web/ai-platform/template/src/app/layout.tsx +3 -0
  133. package/src/templates/web/ai-platform/template/src/app/loading.tsx +22 -22
  134. package/src/templates/web/ai-platform/template/src/app/page.tsx +248 -154
  135. package/src/templates/web/ai-platform/template/src/lib/auth-server.ts +32 -33
  136. package/src/templates/web/base/template/next.config.js +14 -15
  137. package/src/templates/web/base/template/package.json +16 -31
  138. package/src/templates/web/base/template/postcss.config.mjs +8 -0
  139. package/src/templates/web/base/template/src/app/error.tsx +97 -97
  140. package/src/templates/web/base/template/src/app/globals.css +87 -148
  141. package/src/templates/web/base/template/src/app/layout.tsx +4 -1
  142. package/src/templates/web/base/template/src/app/loading.tsx +52 -52
  143. package/src/templates/web/base/template/tsconfig.json +27 -33
  144. package/src/templates/web/iot-dashboard/template/next.config.js +14 -14
  145. package/src/templates/web/iot-dashboard/template/package.json +12 -16
  146. package/src/templates/web/iot-dashboard/template/postcss.config.mjs +8 -0
  147. package/src/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +224 -224
  148. package/src/templates/web/iot-dashboard/template/src/app/error.tsx +8 -8
  149. package/src/templates/web/iot-dashboard/template/src/app/globals.css +97 -20
  150. package/src/templates/web/iot-dashboard/template/src/app/layout.tsx +3 -0
  151. package/src/templates/web/iot-dashboard/template/src/app/loading.tsx +5 -5
  152. package/src/templates/web/iot-dashboard/template/src/app/page.tsx +266 -189
  153. package/src/templates/web/iot-dashboard/template/src/lib/auth-server.ts +32 -33
  154. package/src/templates/web/marketplace/template/next.config.js +14 -14
  155. package/src/templates/web/marketplace/template/package.json +11 -18
  156. package/src/templates/web/marketplace/template/postcss.config.mjs +8 -0
  157. package/src/templates/web/marketplace/template/src/app/cart/page.tsx +147 -147
  158. package/src/templates/web/marketplace/template/src/app/dashboard/page.tsx +149 -149
  159. package/src/templates/web/marketplace/template/src/app/error.tsx +7 -7
  160. package/src/templates/web/marketplace/template/src/app/globals.css +97 -20
  161. package/src/templates/web/marketplace/template/src/app/layout.tsx +3 -0
  162. package/src/templates/web/marketplace/template/src/app/loading.tsx +5 -5
  163. package/src/templates/web/marketplace/template/src/app/page.tsx +370 -169
  164. package/src/templates/web/marketplace/template/src/app/products/page.tsx +129 -129
  165. package/src/templates/web/marketplace/template/src/lib/auth-server.ts +32 -33
  166. package/src/templates/web/micro-saas/template/next.config.js +14 -14
  167. package/src/templates/web/micro-saas/template/package.json +9 -8
  168. package/src/templates/web/micro-saas/template/postcss.config.mjs +8 -0
  169. package/src/templates/web/micro-saas/template/src/app/dashboard/page.tsx +145 -117
  170. package/src/templates/web/micro-saas/template/src/app/error.tsx +7 -7
  171. package/src/templates/web/micro-saas/template/src/app/globals.css +97 -20
  172. package/src/templates/web/micro-saas/template/src/app/layout.tsx +3 -0
  173. package/src/templates/web/micro-saas/template/src/app/loading.tsx +43 -27
  174. package/src/templates/web/micro-saas/template/src/app/login/page.tsx +101 -87
  175. package/src/templates/web/micro-saas/template/src/app/page.tsx +227 -137
  176. package/src/templates/web/micro-saas/template/src/app/signup/page.tsx +122 -108
  177. package/src/templates/web/micro-saas/template/src/lib/auth-server.ts +32 -33
  178. package/src/templates/web/ui-auth/template/next.config.js +14 -12
  179. package/src/templates/web/ui-auth/template/package.json +16 -26
  180. package/src/templates/web/ui-auth/template/postcss.config.mjs +8 -0
  181. package/src/templates/web/ui-auth/template/src/app/error.tsx +67 -67
  182. package/src/templates/web/ui-auth/template/src/app/globals.css +85 -84
  183. package/src/templates/web/ui-auth/template/src/app/layout.tsx +4 -1
  184. package/src/templates/web/ui-auth/template/src/app/loading.tsx +20 -38
  185. package/src/templates/web/ui-auth/template/tsconfig.json +27 -33
  186. package/src/templates/web/ui-auth-ai/template/next.config.js +15 -13
  187. package/src/templates/web/ui-auth-ai/template/package.json +25 -21
  188. package/src/templates/web/ui-auth-ai/template/postcss.config.mjs +8 -0
  189. package/src/templates/web/ui-auth-ai/template/src/app/error.tsx +7 -7
  190. package/src/templates/web/ui-auth-ai/template/src/app/globals.css +87 -25
  191. package/src/templates/web/ui-auth-ai/template/src/app/layout.tsx +3 -0
  192. package/src/templates/web/ui-auth-ai/template/src/app/loading.tsx +4 -4
  193. package/src/templates/web/ui-auth-ai/template/tsconfig.json +27 -28
  194. package/src/templates/web/ui-auth-payments/template/next.config.js +14 -12
  195. package/src/templates/web/ui-auth-payments/template/package.json +16 -29
  196. package/src/templates/web/ui-auth-payments/template/postcss.config.mjs +8 -0
  197. package/src/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -67
  198. package/src/templates/web/ui-auth-payments/template/src/app/globals.css +89 -204
  199. package/src/templates/web/ui-auth-payments/template/src/app/layout.tsx +4 -1
  200. package/src/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -20
  201. package/src/templates/web/ui-auth-payments/template/tsconfig.json +27 -33
  202. package/src/templates/web/ui-auth-payments-ai/template/next.config.js +14 -12
  203. package/src/templates/web/ui-auth-payments-ai/template/package.json +17 -33
  204. package/src/templates/web/ui-auth-payments-ai/template/postcss.config.mjs +8 -0
  205. package/src/templates/web/ui-auth-payments-ai/template/src/app/error.tsx +67 -67
  206. package/src/templates/web/ui-auth-payments-ai/template/src/app/globals.css +85 -85
  207. package/src/templates/web/ui-auth-payments-ai/template/src/app/layout.tsx +4 -1
  208. package/src/templates/web/ui-auth-payments-ai/template/src/app/loading.tsx +20 -20
  209. package/src/templates/web/ui-auth-payments-ai/template/tsconfig.json +27 -33
  210. package/src/templates/web/ui-auth-payments-audio/template/next.config.js +14 -12
  211. package/src/templates/web/ui-auth-payments-audio/template/package.json +17 -30
  212. package/src/templates/web/ui-auth-payments-audio/template/postcss.config.mjs +8 -0
  213. package/src/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -67
  214. package/src/templates/web/ui-auth-payments-audio/template/src/app/globals.css +85 -85
  215. package/src/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +4 -1
  216. package/src/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -20
  217. package/src/templates/web/ui-auth-payments-audio/template/tsconfig.json +27 -33
  218. package/src/templates/web/ui-auth-payments-video/template/next.config.js +14 -12
  219. package/src/templates/web/ui-auth-payments-video/template/package.json +17 -30
  220. package/src/templates/web/ui-auth-payments-video/template/postcss.config.mjs +8 -0
  221. package/src/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -67
  222. package/src/templates/web/ui-auth-payments-video/template/src/app/globals.css +89 -221
  223. package/src/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +4 -1
  224. package/src/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -20
  225. package/src/templates/web/ui-auth-payments-video/template/tsconfig.json +27 -33
  226. package/src/templates/web/ui-only/template/next.config.js +14 -12
  227. package/src/templates/web/ui-only/template/package.json +15 -25
  228. package/src/templates/web/ui-only/template/postcss.config.mjs +8 -0
  229. package/src/templates/web/ui-only/template/src/app/error.tsx +67 -67
  230. package/src/templates/web/ui-only/template/src/app/globals.css +85 -31
  231. package/src/templates/web/ui-only/template/src/app/layout.tsx +4 -1
  232. package/src/templates/web/ui-only/template/src/app/loading.tsx +20 -20
  233. package/src/templates/web/ui-only/template/tsconfig.json +27 -33
  234. package/dist/templates/web/ai-platform/template/middleware.ts +0 -55
  235. package/dist/templates/web/ai-platform/template/src/lib/supabase/client.ts +0 -8
  236. package/dist/templates/web/ai-platform/template/src/lib/supabase/server.ts +0 -27
  237. package/dist/templates/web/base/template/postcss.config.js +0 -7
  238. package/dist/templates/web/base/template/tailwind.config.js +0 -77
  239. package/dist/templates/web/iot-dashboard/template/middleware.ts +0 -56
  240. package/dist/templates/web/iot-dashboard/template/src/lib/supabase/client.ts +0 -8
  241. package/dist/templates/web/iot-dashboard/template/src/lib/supabase/server.ts +0 -27
  242. package/dist/templates/web/marketplace/template/middleware.ts +0 -56
  243. package/dist/templates/web/marketplace/template/src/lib/supabase/client.ts +0 -8
  244. package/dist/templates/web/marketplace/template/src/lib/supabase/server.ts +0 -27
  245. package/dist/templates/web/micro-saas/template/middleware.ts +0 -53
  246. package/dist/templates/web/micro-saas/template/src/lib/supabase/client.ts +0 -8
  247. package/dist/templates/web/micro-saas/template/src/lib/supabase/server.ts +0 -29
  248. package/dist/templates/web/ui-auth/template/.claude +0 -21
  249. package/dist/templates/web/ui-auth/template/context.md +0 -105
  250. package/dist/templates/web/ui-auth/template/postcss.config.js +0 -7
  251. package/dist/templates/web/ui-auth/template/tailwind.config.js +0 -77
  252. package/dist/templates/web/ui-auth-ai/template/postcss.config.js +0 -6
  253. package/dist/templates/web/ui-auth-ai/template/tailwind.config.js +0 -22
  254. package/dist/templates/web/ui-auth-payments/template/middleware.ts +0 -68
  255. package/dist/templates/web/ui-auth-payments/template/package-lock.json +0 -12240
  256. package/dist/templates/web/ui-auth-payments/template/postcss.config.js +0 -7
  257. package/dist/templates/web/ui-auth-payments/template/tailwind.config.js +0 -77
  258. package/dist/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +0 -1
  259. package/dist/templates/web/ui-auth-payments-ai/template/.claude +0 -21
  260. package/dist/templates/web/ui-auth-payments-ai/template/context.md +0 -169
  261. package/dist/templates/web/ui-auth-payments-ai/template/middleware.ts +0 -68
  262. package/dist/templates/web/ui-auth-payments-ai/template/package-lock.json +0 -12241
  263. package/dist/templates/web/ui-auth-payments-ai/template/postcss.config.js +0 -7
  264. package/dist/templates/web/ui-auth-payments-ai/template/tailwind.config.js +0 -77
  265. package/dist/templates/web/ui-auth-payments-ai/template/tsconfig.tsbuildinfo +0 -1
  266. package/dist/templates/web/ui-auth-payments-audio/template/middleware.ts +0 -68
  267. package/dist/templates/web/ui-auth-payments-audio/template/package-lock.json +0 -12241
  268. package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.js +0 -7
  269. package/dist/templates/web/ui-auth-payments-audio/template/tailwind.config.js +0 -77
  270. package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +0 -1
  271. package/dist/templates/web/ui-auth-payments-video/template/postcss.config.js +0 -7
  272. package/dist/templates/web/ui-auth-payments-video/template/tailwind.config.js +0 -77
  273. package/dist/templates/web/ui-only/template/postcss.config.js +0 -7
  274. package/dist/templates/web/ui-only/template/tailwind.config.js +0 -77
  275. package/src/templates/web/ai-platform/template/middleware.ts +0 -55
  276. package/src/templates/web/ai-platform/template/src/lib/supabase/client.ts +0 -8
  277. package/src/templates/web/ai-platform/template/src/lib/supabase/server.ts +0 -27
  278. package/src/templates/web/base/template/postcss.config.js +0 -7
  279. package/src/templates/web/base/template/tailwind.config.js +0 -77
  280. package/src/templates/web/iot-dashboard/template/middleware.ts +0 -56
  281. package/src/templates/web/iot-dashboard/template/src/lib/supabase/client.ts +0 -8
  282. package/src/templates/web/iot-dashboard/template/src/lib/supabase/server.ts +0 -27
  283. package/src/templates/web/marketplace/template/middleware.ts +0 -56
  284. package/src/templates/web/marketplace/template/src/lib/supabase/client.ts +0 -8
  285. package/src/templates/web/marketplace/template/src/lib/supabase/server.ts +0 -27
  286. package/src/templates/web/micro-saas/template/middleware.ts +0 -53
  287. package/src/templates/web/micro-saas/template/src/lib/supabase/client.ts +0 -8
  288. package/src/templates/web/micro-saas/template/src/lib/supabase/server.ts +0 -29
  289. package/src/templates/web/ui-auth/template/.claude +0 -21
  290. package/src/templates/web/ui-auth/template/context.md +0 -105
  291. package/src/templates/web/ui-auth/template/postcss.config.js +0 -7
  292. package/src/templates/web/ui-auth/template/tailwind.config.js +0 -77
  293. package/src/templates/web/ui-auth-ai/template/postcss.config.js +0 -6
  294. package/src/templates/web/ui-auth-ai/template/tailwind.config.js +0 -22
  295. package/src/templates/web/ui-auth-payments/template/middleware.ts +0 -68
  296. package/src/templates/web/ui-auth-payments/template/package-lock.json +0 -12240
  297. package/src/templates/web/ui-auth-payments/template/postcss.config.js +0 -7
  298. package/src/templates/web/ui-auth-payments/template/tailwind.config.js +0 -77
  299. package/src/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +0 -1
  300. package/src/templates/web/ui-auth-payments-ai/template/.claude +0 -21
  301. package/src/templates/web/ui-auth-payments-ai/template/context.md +0 -169
  302. package/src/templates/web/ui-auth-payments-ai/template/middleware.ts +0 -68
  303. package/src/templates/web/ui-auth-payments-ai/template/package-lock.json +0 -12241
  304. package/src/templates/web/ui-auth-payments-ai/template/postcss.config.js +0 -7
  305. package/src/templates/web/ui-auth-payments-ai/template/tailwind.config.js +0 -77
  306. package/src/templates/web/ui-auth-payments-ai/template/tsconfig.tsbuildinfo +0 -1
  307. package/src/templates/web/ui-auth-payments-audio/template/middleware.ts +0 -68
  308. package/src/templates/web/ui-auth-payments-audio/template/package-lock.json +0 -12241
  309. package/src/templates/web/ui-auth-payments-audio/template/postcss.config.js +0 -7
  310. package/src/templates/web/ui-auth-payments-audio/template/tailwind.config.js +0 -77
  311. package/src/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +0 -1
  312. package/src/templates/web/ui-auth-payments-video/template/postcss.config.js +0 -7
  313. package/src/templates/web/ui-auth-payments-video/template/tailwind.config.js +0 -77
  314. package/src/templates/web/ui-only/template/postcss.config.js +0 -7
  315. package/src/templates/web/ui-only/template/tailwind.config.js +0 -77
  316. /package/dist/templates/shared/admin/web/{components → src/components}/admin-nav.tsx +0 -0
  317. /package/dist/templates/shared/auth/keycloak/web/{auth.config.ts → src/auth.config.ts} +0 -0
  318. /package/dist/templates/shared/auth/keycloak/web/{auth.ts → src/auth.ts} +0 -0
  319. /package/dist/templates/shared/middleware/web/{middleware.ts → src/middleware.ts} +0 -0
  320. /package/src/templates/shared/admin/web/{components → src/components}/admin-nav.tsx +0 -0
  321. /package/src/templates/shared/auth/keycloak/web/{auth.config.ts → src/auth.config.ts} +0 -0
  322. /package/src/templates/shared/auth/keycloak/web/{auth.ts → src/auth.ts} +0 -0
  323. /package/src/templates/shared/middleware/web/{middleware.ts → src/middleware.ts} +0 -0
@@ -8,39 +8,35 @@
8
8
  "build": "next build",
9
9
  "start": "next start",
10
10
  "lint": "next lint",
11
- "type-check": "tsc --noEmit",
12
- "test": "vitest",
13
- "test:run": "vitest run"
11
+ "type-check": "tsc --noEmit"
14
12
  },
15
13
  "dependencies": {
16
- "next": "^15.0.0",
14
+ "next": "^15.5.0",
17
15
  "react": "^19.0.0",
18
16
  "react-dom": "^19.0.0",
19
- "@digilogiclabs/platform-core": "^1.13.0",
20
- "@digilogiclabs/app-sdk": "^1.0.0",
21
- "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
- "tailwindcss": "^4.0.0",
23
- "clsx": "^2.0.0",
17
+ "@digilogiclabs/platform-core": "^1.14.0",
18
+ "@digilogiclabs/app-sdk": "^1.1.0",
19
+ "@digilogiclabs/saas-factory-ui": "^1.8.1",
20
+ "tailwindcss": "^4.1.0",
21
+ "@tailwindcss/postcss": "^4.1.0",
22
+ "clsx": "^2.1.0",
24
23
  "class-variance-authority": "^0.7.0",
25
- "tailwind-merge": "^2.0.0",
24
+ "tailwind-merge": "^2.6.0",
26
25
  "next-themes": "^0.4.0",
27
26
  "lucide-react": "^0.460.0",
28
27
  "zod": "^4.1.0",
29
28
  "zustand": "^4.5.0",
30
- "recharts": "^2.13.0",
29
+ "recharts": "^2.14.0",
31
30
  "date-fns": "^4.1.0"
32
31
  },
33
32
  "devDependencies": {
34
- "typescript": "^5.7.0",
33
+ "typescript": "^5.8.0",
35
34
  "@types/node": "^22.0.0",
36
35
  "@types/react": "^19.0.0",
37
36
  "@types/react-dom": "^19.0.0",
38
37
  "eslint": "^9.0.0",
39
38
  "eslint-config-next": "^15.0.0",
40
- "prettier": "^3.4.0",
41
- "vitest": "^2.1.0",
42
- "@testing-library/react": "^16.0.0",
43
- "@testing-library/jest-dom": "^6.6.0"
39
+ "prettier": "^3.4.0"
44
40
  },
45
41
  "engines": {
46
42
  "node": ">=20.0.0"
@@ -0,0 +1,8 @@
1
+ /** @type {import('postcss-load-config').Config} */
2
+ const config = {
3
+ plugins: {
4
+ '@tailwindcss/postcss': {},
5
+ },
6
+ };
7
+
8
+ export default config;
@@ -1,224 +1,224 @@
1
- 'use client'
2
-
3
- import { useState, useEffect } from 'react'
4
- import { Button, Card, PulseIndicator } from '@digilogiclabs/saas-factory-ui'
5
- import { Cpu, Activity, Signal, Bell, AlertTriangle, CheckCircle, Clock, ThermometerSun, Gauge, Wifi, Plus } from 'lucide-react'
6
- import Link from 'next/link'
7
-
8
- // Simulated real-time data
9
- const generateTelemetryData = () => ({
10
- temperature: (20 + Math.random() * 10).toFixed(1),
11
- pressure: (100 + Math.random() * 20).toFixed(1),
12
- humidity: (40 + Math.random() * 30).toFixed(0),
13
- signalStrength: (-50 - Math.random() * 40).toFixed(0),
14
- })
15
-
16
- const DEVICES = [
17
- { id: 1, name: 'Sensor Hub A1', type: 'Gateway', status: 'online', lastSeen: '2 min ago' },
18
- { id: 2, name: 'Temp Sensor T-001', type: 'Temperature', status: 'online', lastSeen: '1 min ago' },
19
- { id: 3, name: 'Pressure Gauge P-001', type: 'Pressure', status: 'online', lastSeen: '3 min ago' },
20
- { id: 4, name: 'Motion Detector M-001', type: 'Motion', status: 'offline', lastSeen: '15 min ago' },
21
- { id: 5, name: 'Humidity Sensor H-001', type: 'Humidity', status: 'online', lastSeen: '30 sec ago' },
22
- ]
23
-
24
- const RECENT_ALERTS = [
25
- { id: 1, message: 'Temperature threshold exceeded on T-001', severity: 'warning', time: '5 min ago' },
26
- { id: 2, message: 'Motion Detector M-001 offline', severity: 'error', time: '15 min ago' },
27
- { id: 3, message: 'System backup completed', severity: 'info', time: '1 hour ago' },
28
- ]
29
-
30
- export default function DashboardPage() {
31
- const [telemetry, setTelemetry] = useState(generateTelemetryData())
32
-
33
- // Simulate real-time updates
34
- useEffect(() => {
35
- const interval = setInterval(() => {
36
- setTelemetry(generateTelemetryData())
37
- }, 3000)
38
- return () => clearInterval(interval)
39
- }, [])
40
-
41
- const onlineDevices = DEVICES.filter(d => d.status === 'online').length
42
- const offlineDevices = DEVICES.filter(d => d.status === 'offline').length
43
-
44
- return (
45
- <div className="min-h-screen bg-slate-50 dark:bg-slate-900">
46
- {/* Header */}
47
- <header className="bg-white dark:bg-slate-800 border-b border-slate-200 dark:border-slate-700 px-6 py-4">
48
- <div className="flex items-center justify-between">
49
- <div>
50
- <h1 className="text-2xl font-bold text-slate-900 dark:text-white">Dashboard</h1>
51
- <p className="text-slate-600 dark:text-slate-400 text-sm">Real-time IoT monitoring</p>
52
- </div>
53
- <Link href="/devices/new">
54
- <Button className="bg-emerald-600 hover:bg-emerald-700">
55
- <Plus className="w-4 h-4 mr-2" />
56
- Add Device
57
- </Button>
58
- </Link>
59
- </div>
60
- </header>
61
-
62
- <div className="p-6">
63
- {/* Stats */}
64
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
65
- <Card className="p-6">
66
- <div className="flex items-center justify-between">
67
- <div>
68
- <p className="text-sm text-slate-600 dark:text-slate-400">Total Devices</p>
69
- <p className="text-3xl font-bold text-slate-900 dark:text-white">{DEVICES.length}</p>
70
- </div>
71
- <div className="w-12 h-12 bg-emerald-100 dark:bg-emerald-900/30 rounded-lg flex items-center justify-center">
72
- <Cpu className="w-6 h-6 text-emerald-600" />
73
- </div>
74
- </div>
75
- </Card>
76
-
77
- <Card className="p-6">
78
- <div className="flex items-center justify-between">
79
- <div>
80
- <p className="text-sm text-slate-600 dark:text-slate-400">Online</p>
81
- <p className="text-3xl font-bold text-green-600">{onlineDevices}</p>
82
- </div>
83
- <div className="w-12 h-12 bg-green-100 dark:bg-green-900/30 rounded-lg flex items-center justify-center">
84
- <CheckCircle className="w-6 h-6 text-green-600" />
85
- </div>
86
- </div>
87
- </Card>
88
-
89
- <Card className="p-6">
90
- <div className="flex items-center justify-between">
91
- <div>
92
- <p className="text-sm text-slate-600 dark:text-slate-400">Offline</p>
93
- <p className="text-3xl font-bold text-red-600">{offlineDevices}</p>
94
- </div>
95
- <div className="w-12 h-12 bg-red-100 dark:bg-red-900/30 rounded-lg flex items-center justify-center">
96
- <AlertTriangle className="w-6 h-6 text-red-600" />
97
- </div>
98
- </div>
99
- </Card>
100
-
101
- <Card className="p-6">
102
- <div className="flex items-center justify-between">
103
- <div>
104
- <p className="text-sm text-slate-600 dark:text-slate-400">Active Alerts</p>
105
- <p className="text-3xl font-bold text-amber-600">{RECENT_ALERTS.length}</p>
106
- </div>
107
- <div className="w-12 h-12 bg-amber-100 dark:bg-amber-900/30 rounded-lg flex items-center justify-center">
108
- <Bell className="w-6 h-6 text-amber-600" />
109
- </div>
110
- </div>
111
- </Card>
112
- </div>
113
-
114
- {/* Live Telemetry */}
115
- <div className="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
116
- <Card className="p-6">
117
- <h2 className="text-lg font-semibold text-slate-900 dark:text-white mb-6 flex items-center">
118
- <Activity className="w-5 h-5 mr-2 text-emerald-600" />
119
- Live Telemetry
120
- </h2>
121
- <div className="grid grid-cols-2 gap-4">
122
- <div className="p-4 bg-slate-100 dark:bg-slate-700/50 rounded-lg">
123
- <div className="flex items-center gap-2 mb-2">
124
- <ThermometerSun className="w-4 h-4 text-orange-500" />
125
- <span className="text-sm text-slate-600 dark:text-slate-400">Temperature</span>
126
- </div>
127
- <p className="text-2xl font-bold text-slate-900 dark:text-white">{telemetry.temperature}°C</p>
128
- </div>
129
- <div className="p-4 bg-slate-100 dark:bg-slate-700/50 rounded-lg">
130
- <div className="flex items-center gap-2 mb-2">
131
- <Gauge className="w-4 h-4 text-blue-500" />
132
- <span className="text-sm text-slate-600 dark:text-slate-400">Pressure</span>
133
- </div>
134
- <p className="text-2xl font-bold text-slate-900 dark:text-white">{telemetry.pressure} kPa</p>
135
- </div>
136
- <div className="p-4 bg-slate-100 dark:bg-slate-700/50 rounded-lg">
137
- <div className="flex items-center gap-2 mb-2">
138
- <Activity className="w-4 h-4 text-cyan-500" />
139
- <span className="text-sm text-slate-600 dark:text-slate-400">Humidity</span>
140
- </div>
141
- <p className="text-2xl font-bold text-slate-900 dark:text-white">{telemetry.humidity}%</p>
142
- </div>
143
- <div className="p-4 bg-slate-100 dark:bg-slate-700/50 rounded-lg">
144
- <div className="flex items-center gap-2 mb-2">
145
- <Signal className="w-4 h-4 text-purple-500" />
146
- <span className="text-sm text-slate-600 dark:text-slate-400">Signal</span>
147
- </div>
148
- <p className="text-2xl font-bold text-slate-900 dark:text-white">{telemetry.signalStrength} dBm</p>
149
- </div>
150
- </div>
151
- </Card>
152
-
153
- <Card className="p-6">
154
- <h2 className="text-lg font-semibold text-slate-900 dark:text-white mb-6 flex items-center">
155
- <Bell className="w-5 h-5 mr-2 text-amber-600" />
156
- Recent Alerts
157
- </h2>
158
- <div className="space-y-4">
159
- {RECENT_ALERTS.map((alert) => (
160
- <div key={alert.id} className="flex items-start gap-3 p-3 bg-slate-100 dark:bg-slate-700/50 rounded-lg">
161
- <div className={`w-2 h-2 rounded-full mt-2 ${
162
- alert.severity === 'error' ? 'bg-red-500' :
163
- alert.severity === 'warning' ? 'bg-amber-500' :
164
- 'bg-blue-500'
165
- }`} />
166
- <div className="flex-1">
167
- <p className="text-sm text-slate-900 dark:text-white">{alert.message}</p>
168
- <p className="text-xs text-slate-500 mt-1">{alert.time}</p>
169
- </div>
170
- </div>
171
- ))}
172
- </div>
173
- </Card>
174
- </div>
175
-
176
- {/* Device List */}
177
- <Card className="p-6">
178
- <div className="flex items-center justify-between mb-6">
179
- <h2 className="text-lg font-semibold text-slate-900 dark:text-white flex items-center">
180
- <Cpu className="w-5 h-5 mr-2 text-emerald-600" />
181
- Devices
182
- </h2>
183
- <Link href="/devices">
184
- <Button variant="outline" size="sm">View All</Button>
185
- </Link>
186
- </div>
187
- <div className="overflow-x-auto">
188
- <table className="w-full">
189
- <thead>
190
- <tr className="border-b border-slate-200 dark:border-slate-700">
191
- <th className="text-left py-3 px-4 text-sm font-medium text-slate-600 dark:text-slate-400">Name</th>
192
- <th className="text-left py-3 px-4 text-sm font-medium text-slate-600 dark:text-slate-400">Type</th>
193
- <th className="text-left py-3 px-4 text-sm font-medium text-slate-600 dark:text-slate-400">Status</th>
194
- <th className="text-left py-3 px-4 text-sm font-medium text-slate-600 dark:text-slate-400">Last Seen</th>
195
- </tr>
196
- </thead>
197
- <tbody>
198
- {DEVICES.map((device) => (
199
- <tr key={device.id} className="border-b border-slate-100 dark:border-slate-800 hover:bg-slate-50 dark:hover:bg-slate-800/50">
200
- <td className="py-3 px-4">
201
- <span className="font-medium text-slate-900 dark:text-white">{device.name}</span>
202
- </td>
203
- <td className="py-3 px-4 text-slate-600 dark:text-slate-400">{device.type}</td>
204
- <td className="py-3 px-4">
205
- <PulseIndicator
206
- status={device.status === 'online' ? 'success' : 'error'}
207
- label={device.status}
208
- size="sm"
209
- />
210
- </td>
211
- <td className="py-3 px-4 text-slate-600 dark:text-slate-400 flex items-center">
212
- <Clock className="w-3 h-3 mr-1" />
213
- {device.lastSeen}
214
- </td>
215
- </tr>
216
- ))}
217
- </tbody>
218
- </table>
219
- </div>
220
- </Card>
221
- </div>
222
- </div>
223
- )
224
- }
1
+ 'use client'
2
+
3
+ import { useState, useEffect } from 'react'
4
+ import { Button, Card, PulseIndicator } from '@digilogiclabs/saas-factory-ui'
5
+ import { Cpu, Activity, Signal, Bell, AlertTriangle, CheckCircle, Clock, ThermometerSun, Gauge, Wifi, Plus } from 'lucide-react'
6
+ import Link from 'next/link'
7
+
8
+ // Simulated real-time data
9
+ const generateTelemetryData = () => ({
10
+ temperature: (20 + Math.random() * 10).toFixed(1),
11
+ pressure: (100 + Math.random() * 20).toFixed(1),
12
+ humidity: (40 + Math.random() * 30).toFixed(0),
13
+ signalStrength: (-50 - Math.random() * 40).toFixed(0),
14
+ })
15
+
16
+ const DEVICES = [
17
+ { id: 1, name: 'Sensor Hub A1', type: 'Gateway', status: 'online', lastSeen: '2 min ago' },
18
+ { id: 2, name: 'Temp Sensor T-001', type: 'Temperature', status: 'online', lastSeen: '1 min ago' },
19
+ { id: 3, name: 'Pressure Gauge P-001', type: 'Pressure', status: 'online', lastSeen: '3 min ago' },
20
+ { id: 4, name: 'Motion Detector M-001', type: 'Motion', status: 'offline', lastSeen: '15 min ago' },
21
+ { id: 5, name: 'Humidity Sensor H-001', type: 'Humidity', status: 'online', lastSeen: '30 sec ago' },
22
+ ]
23
+
24
+ const RECENT_ALERTS = [
25
+ { id: 1, message: 'Temperature threshold exceeded on T-001', severity: 'warning', time: '5 min ago' },
26
+ { id: 2, message: 'Motion Detector M-001 offline', severity: 'error', time: '15 min ago' },
27
+ { id: 3, message: 'System backup completed', severity: 'info', time: '1 hour ago' },
28
+ ]
29
+
30
+ export default function DashboardPage() {
31
+ const [telemetry, setTelemetry] = useState(generateTelemetryData())
32
+
33
+ // Simulate real-time updates
34
+ useEffect(() => {
35
+ const interval = setInterval(() => {
36
+ setTelemetry(generateTelemetryData())
37
+ }, 3000)
38
+ return () => clearInterval(interval)
39
+ }, [])
40
+
41
+ const onlineDevices = DEVICES.filter(d => d.status === 'online').length
42
+ const offlineDevices = DEVICES.filter(d => d.status === 'offline').length
43
+
44
+ return (
45
+ <div className="min-h-screen bg-background">
46
+ {/* Header */}
47
+ <header className="bg-card border-b border-border px-6 py-4">
48
+ <div className="flex items-center justify-between">
49
+ <div>
50
+ <h1 className="text-2xl font-bold text-foreground">Dashboard</h1>
51
+ <p className="text-muted-foreground text-sm">Real-time IoT monitoring</p>
52
+ </div>
53
+ <Link href="/devices/new">
54
+ <Button>
55
+ <Plus className="w-4 h-4 mr-2" />
56
+ Add Device
57
+ </Button>
58
+ </Link>
59
+ </div>
60
+ </header>
61
+
62
+ <div className="p-6">
63
+ {/* Stats */}
64
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
65
+ <Card className="p-6">
66
+ <div className="flex items-center justify-between">
67
+ <div>
68
+ <p className="text-sm text-muted-foreground">Total Devices</p>
69
+ <p className="text-3xl font-bold text-foreground">{DEVICES.length}</p>
70
+ </div>
71
+ <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center">
72
+ <Cpu className="w-6 h-6 text-primary" />
73
+ </div>
74
+ </div>
75
+ </Card>
76
+
77
+ <Card className="p-6">
78
+ <div className="flex items-center justify-between">
79
+ <div>
80
+ <p className="text-sm text-muted-foreground">Online</p>
81
+ <p className="text-3xl font-bold text-green-600">{onlineDevices}</p>
82
+ </div>
83
+ <div className="w-12 h-12 bg-green-100 dark:bg-green-900/30 rounded-lg flex items-center justify-center">
84
+ <CheckCircle className="w-6 h-6 text-green-600" />
85
+ </div>
86
+ </div>
87
+ </Card>
88
+
89
+ <Card className="p-6">
90
+ <div className="flex items-center justify-between">
91
+ <div>
92
+ <p className="text-sm text-muted-foreground">Offline</p>
93
+ <p className="text-3xl font-bold text-destructive">{offlineDevices}</p>
94
+ </div>
95
+ <div className="w-12 h-12 bg-destructive/10 rounded-lg flex items-center justify-center">
96
+ <AlertTriangle className="w-6 h-6 text-destructive" />
97
+ </div>
98
+ </div>
99
+ </Card>
100
+
101
+ <Card className="p-6">
102
+ <div className="flex items-center justify-between">
103
+ <div>
104
+ <p className="text-sm text-muted-foreground">Active Alerts</p>
105
+ <p className="text-3xl font-bold text-amber-600">{RECENT_ALERTS.length}</p>
106
+ </div>
107
+ <div className="w-12 h-12 bg-amber-100 dark:bg-amber-900/30 rounded-lg flex items-center justify-center">
108
+ <Bell className="w-6 h-6 text-amber-600" />
109
+ </div>
110
+ </div>
111
+ </Card>
112
+ </div>
113
+
114
+ {/* Live Telemetry */}
115
+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
116
+ <Card className="p-6">
117
+ <h2 className="text-lg font-semibold text-foreground mb-6 flex items-center">
118
+ <Activity className="w-5 h-5 mr-2 text-primary" />
119
+ Live Telemetry
120
+ </h2>
121
+ <div className="grid grid-cols-2 gap-4">
122
+ <div className="p-4 bg-muted rounded-lg">
123
+ <div className="flex items-center gap-2 mb-2">
124
+ <ThermometerSun className="w-4 h-4 text-orange-500" />
125
+ <span className="text-sm text-muted-foreground">Temperature</span>
126
+ </div>
127
+ <p className="text-2xl font-bold text-foreground">{telemetry.temperature}°C</p>
128
+ </div>
129
+ <div className="p-4 bg-muted rounded-lg">
130
+ <div className="flex items-center gap-2 mb-2">
131
+ <Gauge className="w-4 h-4 text-blue-500" />
132
+ <span className="text-sm text-muted-foreground">Pressure</span>
133
+ </div>
134
+ <p className="text-2xl font-bold text-foreground">{telemetry.pressure} kPa</p>
135
+ </div>
136
+ <div className="p-4 bg-muted rounded-lg">
137
+ <div className="flex items-center gap-2 mb-2">
138
+ <Activity className="w-4 h-4 text-cyan-500" />
139
+ <span className="text-sm text-muted-foreground">Humidity</span>
140
+ </div>
141
+ <p className="text-2xl font-bold text-foreground">{telemetry.humidity}%</p>
142
+ </div>
143
+ <div className="p-4 bg-muted rounded-lg">
144
+ <div className="flex items-center gap-2 mb-2">
145
+ <Signal className="w-4 h-4 text-purple-500" />
146
+ <span className="text-sm text-muted-foreground">Signal</span>
147
+ </div>
148
+ <p className="text-2xl font-bold text-foreground">{telemetry.signalStrength} dBm</p>
149
+ </div>
150
+ </div>
151
+ </Card>
152
+
153
+ <Card className="p-6">
154
+ <h2 className="text-lg font-semibold text-foreground mb-6 flex items-center">
155
+ <Bell className="w-5 h-5 mr-2 text-amber-600" />
156
+ Recent Alerts
157
+ </h2>
158
+ <div className="space-y-4">
159
+ {RECENT_ALERTS.map((alert) => (
160
+ <div key={alert.id} className="flex items-start gap-3 p-3 bg-muted rounded-lg">
161
+ <div className={`w-2 h-2 rounded-full mt-2 ${
162
+ alert.severity === 'error' ? 'bg-red-500' :
163
+ alert.severity === 'warning' ? 'bg-amber-500' :
164
+ 'bg-blue-500'
165
+ }`} />
166
+ <div className="flex-1">
167
+ <p className="text-sm text-foreground">{alert.message}</p>
168
+ <p className="text-xs text-muted-foreground mt-1">{alert.time}</p>
169
+ </div>
170
+ </div>
171
+ ))}
172
+ </div>
173
+ </Card>
174
+ </div>
175
+
176
+ {/* Device List */}
177
+ <Card className="p-6">
178
+ <div className="flex items-center justify-between mb-6">
179
+ <h2 className="text-lg font-semibold text-foreground flex items-center">
180
+ <Cpu className="w-5 h-5 mr-2 text-primary" />
181
+ Devices
182
+ </h2>
183
+ <Link href="/devices">
184
+ <Button variant="outline" size="sm">View All</Button>
185
+ </Link>
186
+ </div>
187
+ <div className="overflow-x-auto">
188
+ <table className="w-full">
189
+ <thead>
190
+ <tr className="border-b border-border">
191
+ <th className="text-left py-3 px-4 text-sm font-medium text-muted-foreground">Name</th>
192
+ <th className="text-left py-3 px-4 text-sm font-medium text-muted-foreground">Type</th>
193
+ <th className="text-left py-3 px-4 text-sm font-medium text-muted-foreground">Status</th>
194
+ <th className="text-left py-3 px-4 text-sm font-medium text-muted-foreground">Last Seen</th>
195
+ </tr>
196
+ </thead>
197
+ <tbody>
198
+ {DEVICES.map((device) => (
199
+ <tr key={device.id} className="border-b border-border/50 hover:bg-muted/50">
200
+ <td className="py-3 px-4">
201
+ <span className="font-medium text-foreground">{device.name}</span>
202
+ </td>
203
+ <td className="py-3 px-4 text-muted-foreground">{device.type}</td>
204
+ <td className="py-3 px-4">
205
+ <PulseIndicator
206
+ status={device.status === 'online' ? 'success' : 'error'}
207
+ label={device.status}
208
+ size="sm"
209
+ />
210
+ </td>
211
+ <td className="py-3 px-4 text-muted-foreground flex items-center">
212
+ <Clock className="w-3 h-3 mr-1" />
213
+ {device.lastSeen}
214
+ </td>
215
+ </tr>
216
+ ))}
217
+ </tbody>
218
+ </table>
219
+ </div>
220
+ </Card>
221
+ </div>
222
+ </div>
223
+ )
224
+ }
@@ -16,27 +16,27 @@ export default function Error({ error, reset }: ErrorProps) {
16
16
  }, [error])
17
17
 
18
18
  return (
19
- <div className="min-h-screen bg-gradient-to-br from-red-50 to-orange-100 dark:from-slate-900 dark:to-slate-800 flex items-center justify-center p-4">
19
+ <div className="min-h-screen bg-background flex items-center justify-center p-4">
20
20
  <Card className="p-8 max-w-lg w-full">
21
21
  <div className="flex flex-col items-center space-y-6 text-center">
22
- <div className="w-16 h-16 bg-red-100 dark:bg-red-900 rounded-full flex items-center justify-center">
23
- <AlertTriangle className="w-8 h-8 text-red-600 dark:text-red-400" />
22
+ <div className="w-16 h-16 bg-destructive/10 rounded-full flex items-center justify-center">
23
+ <AlertTriangle className="w-8 h-8 text-destructive" />
24
24
  </div>
25
25
 
26
26
  <div>
27
- <h1 className="text-2xl font-bold text-slate-900 dark:text-white mb-2">
27
+ <h1 className="text-2xl font-bold text-foreground mb-2">
28
28
  Something went wrong!
29
29
  </h1>
30
- <p className="text-slate-600 dark:text-slate-300 mb-4">
30
+ <p className="text-muted-foreground mb-4">
31
31
  We encountered an unexpected error. This has been logged and our team will look into it.
32
32
  </p>
33
33
 
34
34
  {process.env.NODE_ENV === 'development' && (
35
35
  <details className="mt-4 text-left">
36
- <summary className="cursor-pointer text-sm text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200">
36
+ <summary className="cursor-pointer text-sm text-muted-foreground hover:text-foreground">
37
37
  Error details (development only)
38
38
  </summary>
39
- <div className="mt-2 p-3 bg-slate-100 dark:bg-slate-800 rounded text-xs font-mono text-slate-700 dark:text-slate-300 overflow-auto max-h-40">
39
+ <div className="mt-2 p-3 bg-muted rounded text-xs font-mono text-muted-foreground overflow-auto max-h-40">
40
40
  <div className="mb-2">
41
41
  <strong>Message:</strong> {error.message}
42
42
  </div>
@@ -57,7 +57,7 @@ export default function Error({ error, reset }: ErrorProps) {
57
57
  </div>
58
58
 
59
59
  <div className="flex flex-col sm:flex-row gap-3 w-full">
60
- <Button onClick={reset} className="flex-1 bg-emerald-600 hover:bg-emerald-700" size="lg">
60
+ <Button onClick={reset} className="flex-1" size="lg">
61
61
  <RefreshCw className="w-4 h-4 mr-2" />
62
62
  Try again
63
63
  </Button>