@vitnode/core 1.2.0-canary.51 → 1.2.0-canary.53

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 (495) hide show
  1. package/config/next.config.ts +3 -3
  2. package/dist/scripts/get-config.d.ts +2 -2
  3. package/dist/scripts/get-config.d.ts.map +1 -1
  4. package/dist/scripts/plugin.d.ts.map +1 -1
  5. package/dist/scripts/prepare-database.d.ts.map +1 -1
  6. package/dist/scripts/prepare-plugins-files.d.ts.map +1 -1
  7. package/dist/scripts/scripts.js +4 -4
  8. package/dist/scripts/shared/file-utils.d.ts.map +1 -1
  9. package/dist/src/api/adapters/email/nodemailer.d.ts +1 -1
  10. package/dist/src/api/adapters/email/nodemailer.js +3 -3
  11. package/dist/src/api/adapters/email/resend.d.ts +1 -1
  12. package/dist/src/api/adapters/email/resend.js +2 -2
  13. package/dist/src/api/adapters/sso/discord.d.ts +1 -1
  14. package/dist/src/api/adapters/sso/discord.d.ts.map +1 -1
  15. package/dist/src/api/adapters/sso/discord.js +21 -21
  16. package/dist/src/api/adapters/sso/facebook.d.ts +1 -1
  17. package/dist/src/api/adapters/sso/facebook.d.ts.map +1 -1
  18. package/dist/src/api/adapters/sso/facebook.js +23 -23
  19. package/dist/src/api/adapters/sso/google.d.ts +1 -1
  20. package/dist/src/api/adapters/sso/google.d.ts.map +1 -1
  21. package/dist/src/api/adapters/sso/google.js +21 -21
  22. package/dist/src/api/config.d.ts +3 -3
  23. package/dist/src/api/config.d.ts.map +1 -1
  24. package/dist/src/api/config.js +11 -11
  25. package/dist/src/api/lib/check-plugin-id.js +8 -8
  26. package/dist/src/api/lib/logger-middleware.d.ts +1 -1
  27. package/dist/src/api/lib/logger-middleware.js +9 -9
  28. package/dist/src/api/lib/module.d.ts +2 -2
  29. package/dist/src/api/lib/plugin.d.ts +2 -2
  30. package/dist/src/api/lib/plugin.d.ts.map +1 -1
  31. package/dist/src/api/lib/route.d.ts +2 -2
  32. package/dist/src/api/lib/route.d.ts.map +1 -1
  33. package/dist/src/api/lib/route.js +1 -1
  34. package/dist/src/api/lib/with-pagination.d.ts +7 -7
  35. package/dist/src/api/lib/with-pagination.d.ts.map +1 -1
  36. package/dist/src/api/lib/with-pagination.js +37 -24
  37. package/dist/src/api/middlewares/captcha.middleware.d.ts +1 -1
  38. package/dist/src/api/middlewares/captcha.middleware.d.ts.map +1 -1
  39. package/dist/src/api/middlewares/captcha.middleware.js +14 -13
  40. package/dist/src/api/middlewares/global.middleware.d.ts +12 -20
  41. package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
  42. package/dist/src/api/middlewares/global.middleware.js +29 -28
  43. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts +3 -3
  44. package/dist/src/api/middlewares/rate-limiter.middleware.d.ts.map +1 -1
  45. package/dist/src/api/middlewares/rate-limiter.middleware.js +4 -4
  46. package/dist/src/api/models/device.d.ts +1 -1
  47. package/dist/src/api/models/device.d.ts.map +1 -1
  48. package/dist/src/api/models/device.js +13 -13
  49. package/dist/src/api/models/email.d.ts +27 -11
  50. package/dist/src/api/models/email.d.ts.map +1 -1
  51. package/dist/src/api/models/email.js +35 -22
  52. package/dist/src/api/models/password.d.ts +4 -0
  53. package/dist/src/api/models/password.d.ts.map +1 -1
  54. package/dist/src/api/models/password.js +15 -7
  55. package/dist/src/api/models/session-admin.d.ts +2 -1
  56. package/dist/src/api/models/session-admin.d.ts.map +1 -1
  57. package/dist/src/api/models/session-admin.js +19 -19
  58. package/dist/src/api/models/session.d.ts +2 -1
  59. package/dist/src/api/models/session.d.ts.map +1 -1
  60. package/dist/src/api/models/session.js +17 -17
  61. package/dist/src/api/models/sso.d.ts +1 -1
  62. package/dist/src/api/models/sso.d.ts.map +1 -1
  63. package/dist/src/api/models/sso.js +24 -24
  64. package/dist/src/api/models/user/get-user-by-id.d.ts +2 -1
  65. package/dist/src/api/models/user/get-user-by-id.d.ts.map +1 -1
  66. package/dist/src/api/models/user/get-user-by-id.js +3 -2
  67. package/dist/src/api/models/user/sign-in-with-passwords.d.ts +1 -1
  68. package/dist/src/api/models/user/sign-in-with-passwords.d.ts.map +1 -1
  69. package/dist/src/api/models/user/sign-in-with-passwords.js +1 -1
  70. package/dist/src/api/models/user/sign-up.d.ts +1 -1
  71. package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
  72. package/dist/src/api/models/user/sign-up.js +13 -14
  73. package/dist/src/api/models/user.d.ts +1 -0
  74. package/dist/src/api/models/user.d.ts.map +1 -1
  75. package/dist/src/api/modules/admin/admin.module.d.ts +3 -3
  76. package/dist/src/api/modules/admin/admin.module.js +1 -1
  77. package/dist/src/api/modules/admin/debug/debug.admin.module.d.ts +1 -1
  78. package/dist/src/api/modules/admin/debug/debug.admin.module.js +1 -1
  79. package/dist/src/api/modules/admin/debug/routes/logs.route.d.ts +2 -2
  80. package/dist/src/api/modules/admin/debug/routes/logs.route.js +16 -16
  81. package/dist/src/api/modules/admin/routes/session.route.d.ts +2 -2
  82. package/dist/src/api/modules/admin/routes/session.route.js +7 -7
  83. package/dist/src/api/modules/admin/users/routes/list.route.d.ts +2 -2
  84. package/dist/src/api/modules/admin/users/routes/list.route.js +12 -12
  85. package/dist/src/api/modules/admin/users/routes/users.route.d.ts +2 -2
  86. package/dist/src/api/modules/admin/users/routes/users.route.js +15 -15
  87. package/dist/src/api/modules/admin/users/users.admin.module.d.ts +1 -1
  88. package/dist/src/api/modules/admin/users/users.admin.module.js +1 -1
  89. package/dist/src/api/modules/middleware/middleware.module.d.ts +1 -1
  90. package/dist/src/api/modules/middleware/middleware.module.js +1 -1
  91. package/dist/src/api/modules/middleware/route.d.ts +2 -2
  92. package/dist/src/api/modules/middleware/route.js +12 -12
  93. package/dist/src/api/modules/users/routes/change-password.route.d.ts +52 -0
  94. package/dist/src/api/modules/users/routes/change-password.route.d.ts.map +1 -0
  95. package/dist/src/api/modules/users/routes/change-password.route.js +58 -0
  96. package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts +42 -0
  97. package/dist/src/api/modules/users/routes/reset-passowrd.route.d.ts.map +1 -0
  98. package/dist/src/api/modules/users/routes/reset-passowrd.route.js +91 -0
  99. package/dist/src/api/modules/users/routes/session.route.d.ts +2 -2
  100. package/dist/src/api/modules/users/routes/session.route.js +6 -6
  101. package/dist/src/api/modules/users/routes/sign-in.route.d.ts +3 -3
  102. package/dist/src/api/modules/users/routes/sign-in.route.js +10 -10
  103. package/dist/src/api/modules/users/routes/sign-out.route.d.ts +2 -2
  104. package/dist/src/api/modules/users/routes/sign-out.route.js +7 -7
  105. package/dist/src/api/modules/users/routes/sign-up.route.d.ts +9 -3
  106. package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
  107. package/dist/src/api/modules/users/routes/sign-up.route.js +18 -12
  108. package/dist/src/api/modules/users/routes/test.route.d.ts +3 -3
  109. package/dist/src/api/modules/users/routes/test.route.d.ts.map +1 -1
  110. package/dist/src/api/modules/users/routes/test.route.js +9 -15
  111. package/dist/src/api/modules/users/sso/routes/callback.route.d.ts +6 -3
  112. package/dist/src/api/modules/users/sso/routes/callback.route.d.ts.map +1 -1
  113. package/dist/src/api/modules/users/sso/routes/callback.route.js +10 -7
  114. package/dist/src/api/modules/users/sso/routes/create-url.route.d.ts +2 -2
  115. package/dist/src/api/modules/users/sso/routes/create-url.route.js +6 -6
  116. package/dist/src/api/modules/users/sso/sso.module.d.ts +6 -3
  117. package/dist/src/api/modules/users/sso/sso.module.d.ts.map +1 -1
  118. package/dist/src/api/modules/users/sso/sso.module.js +1 -1
  119. package/dist/src/api/modules/users/users.module.d.ts +103 -11
  120. package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
  121. package/dist/src/api/modules/users/users.module.js +6 -2
  122. package/dist/src/app/login/page.d.ts +1 -1
  123. package/dist/src/app/login/page.js +2 -2
  124. package/dist/src/app/login/reset-password/page.d.ts +9 -0
  125. package/dist/src/app/login/reset-password/page.d.ts.map +1 -0
  126. package/dist/src/app/login/reset-password/page.js +18 -0
  127. package/dist/src/app/register/page.d.ts +1 -1
  128. package/dist/src/app/register/page.js +2 -2
  129. package/dist/src/app_admin/core/debug/page.d.ts +1 -1
  130. package/dist/src/app_admin/core/debug/page.js +8 -8
  131. package/dist/src/app_admin/core/users/page.d.ts +2 -2
  132. package/dist/src/app_admin/core/users/page.d.ts.map +1 -1
  133. package/dist/src/app_admin/core/users/page.js +7 -7
  134. package/dist/src/components/avatar.d.ts +1 -1
  135. package/dist/src/components/avatar.js +1 -1
  136. package/dist/src/components/confirm-action/confirm-action-alert-dialog.d.ts +2 -2
  137. package/dist/src/components/confirm-action/confirm-action-alert-dialog.js +5 -5
  138. package/dist/src/components/confirm-action/content.d.ts.map +1 -1
  139. package/dist/src/components/confirm-action/content.js +3 -4
  140. package/dist/src/components/date-format.js +8 -8
  141. package/dist/src/components/form/auto-form.d.ts +17 -16
  142. package/dist/src/components/form/auto-form.d.ts.map +1 -1
  143. package/dist/src/components/form/auto-form.js +15 -13
  144. package/dist/src/components/form/common/desc.js +1 -1
  145. package/dist/src/components/form/common/label.d.ts +4 -2
  146. package/dist/src/components/form/common/label.d.ts.map +1 -1
  147. package/dist/src/components/form/common/label.js +14 -4
  148. package/dist/src/components/form/fields/checkbox.d.ts +3 -3
  149. package/dist/src/components/form/fields/checkbox.d.ts.map +1 -1
  150. package/dist/src/components/form/fields/checkbox.js +2 -1
  151. package/dist/src/components/form/fields/combobox-async.d.ts +4 -4
  152. package/dist/src/components/form/fields/combobox-async.d.ts.map +1 -1
  153. package/dist/src/components/form/fields/combobox-async.js +31 -24
  154. package/dist/src/components/form/fields/combobox.d.ts +4 -4
  155. package/dist/src/components/form/fields/combobox.d.ts.map +1 -1
  156. package/dist/src/components/form/fields/combobox.js +8 -8
  157. package/dist/src/components/form/fields/input.d.ts +3 -3
  158. package/dist/src/components/form/fields/input.d.ts.map +1 -1
  159. package/dist/src/components/form/fields/input.js +4 -3
  160. package/dist/src/components/form/fields/radio-group.d.ts +4 -4
  161. package/dist/src/components/form/fields/radio-group.d.ts.map +1 -1
  162. package/dist/src/components/form/fields/radio-group.js +2 -2
  163. package/dist/src/components/form/fields/select.d.ts +4 -4
  164. package/dist/src/components/form/fields/select.d.ts.map +1 -1
  165. package/dist/src/components/form/fields/select.js +4 -4
  166. package/dist/src/components/form/fields/switch.d.ts +3 -3
  167. package/dist/src/components/form/fields/switch.d.ts.map +1 -1
  168. package/dist/src/components/form/fields/switch.js +2 -1
  169. package/dist/src/components/form/fields/textarea.d.ts +4 -4
  170. package/dist/src/components/form/fields/textarea.d.ts.map +1 -1
  171. package/dist/src/components/form/fields/textarea.js +3 -3
  172. package/dist/src/components/i18n-provider.d.ts +2 -2
  173. package/dist/src/components/i18n-provider.js +3 -3
  174. package/dist/src/components/logo-vitnode.d.ts.map +1 -1
  175. package/dist/src/components/logo-vitnode.js +8 -2
  176. package/dist/src/components/switchers/langs/language-swietcher.d.ts +1 -1
  177. package/dist/src/components/switchers/langs/language-swietcher.d.ts.map +1 -1
  178. package/dist/src/components/switchers/langs/language-swietcher.js +3 -3
  179. package/dist/src/components/switchers/themes/theme-switcher.js +4 -4
  180. package/dist/src/components/table/content.d.ts +1 -1
  181. package/dist/src/components/table/content.d.ts.map +1 -1
  182. package/dist/src/components/table/content.js +5 -5
  183. package/dist/src/components/table/data-table.d.ts +7 -7
  184. package/dist/src/components/table/data-table.d.ts.map +1 -1
  185. package/dist/src/components/table/data-table.js +22 -15
  186. package/dist/src/components/table/order-table-head.d.ts +4 -4
  187. package/dist/src/components/table/order-table-head.d.ts.map +1 -1
  188. package/dist/src/components/table/order-table-head.js +20 -9
  189. package/dist/src/components/table/pagination.js +19 -19
  190. package/dist/src/components/ui/accordion.d.ts +2 -2
  191. package/dist/src/components/ui/accordion.d.ts.map +1 -1
  192. package/dist/src/components/ui/accordion.js +4 -5
  193. package/dist/src/components/ui/alert-dialog.d.ts +7 -7
  194. package/dist/src/components/ui/alert-dialog.d.ts.map +1 -1
  195. package/dist/src/components/ui/alert-dialog.js +13 -14
  196. package/dist/src/components/ui/alert.d.ts +6 -6
  197. package/dist/src/components/ui/alert.d.ts.map +1 -1
  198. package/dist/src/components/ui/alert.js +6 -7
  199. package/dist/src/components/ui/badge.d.ts +4 -4
  200. package/dist/src/components/ui/badge.d.ts.map +1 -1
  201. package/dist/src/components/ui/badge.js +7 -8
  202. package/dist/src/components/ui/button-client.d.ts +1 -1
  203. package/dist/src/components/ui/button-client.js +9 -9
  204. package/dist/src/components/ui/button.d.ts +9 -9
  205. package/dist/src/components/ui/button.d.ts.map +1 -1
  206. package/dist/src/components/ui/button.js +14 -15
  207. package/dist/src/components/ui/card.d.ts +8 -8
  208. package/dist/src/components/ui/card.d.ts.map +1 -1
  209. package/dist/src/components/ui/card.js +7 -8
  210. package/dist/src/components/ui/checkbox.d.ts +2 -2
  211. package/dist/src/components/ui/checkbox.d.ts.map +1 -1
  212. package/dist/src/components/ui/checkbox.js +2 -3
  213. package/dist/src/components/ui/collapsible.d.ts +1 -1
  214. package/dist/src/components/ui/collapsible.js +1 -1
  215. package/dist/src/components/ui/command.d.ts +4 -4
  216. package/dist/src/components/ui/command.d.ts.map +1 -1
  217. package/dist/src/components/ui/command.js +9 -10
  218. package/dist/src/components/ui/context-menu.d.ts +4 -4
  219. package/dist/src/components/ui/context-menu.d.ts.map +1 -1
  220. package/dist/src/components/ui/context-menu.js +7 -8
  221. package/dist/src/components/ui/dialog.d.ts +6 -6
  222. package/dist/src/components/ui/dialog.d.ts.map +1 -1
  223. package/dist/src/components/ui/dialog.js +16 -16
  224. package/dist/src/components/ui/drawer.d.ts +4 -4
  225. package/dist/src/components/ui/drawer.d.ts.map +1 -1
  226. package/dist/src/components/ui/drawer.js +7 -8
  227. package/dist/src/components/ui/dropdown-menu.d.ts +4 -4
  228. package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -1
  229. package/dist/src/components/ui/dropdown-menu.js +8 -9
  230. package/dist/src/components/ui/form.d.ts +10 -10
  231. package/dist/src/components/ui/form.d.ts.map +1 -1
  232. package/dist/src/components/ui/form.js +15 -15
  233. package/dist/src/components/ui/header-content.js +1 -1
  234. package/dist/src/components/ui/hover-card.d.ts +2 -2
  235. package/dist/src/components/ui/hover-card.d.ts.map +1 -1
  236. package/dist/src/components/ui/hover-card.js +3 -4
  237. package/dist/src/components/ui/input-otp.d.ts +5 -5
  238. package/dist/src/components/ui/input-otp.d.ts.map +1 -1
  239. package/dist/src/components/ui/input-otp.js +6 -7
  240. package/dist/src/components/ui/input.d.ts +2 -2
  241. package/dist/src/components/ui/input.d.ts.map +1 -1
  242. package/dist/src/components/ui/input.js +1 -2
  243. package/dist/src/components/ui/label.d.ts +2 -2
  244. package/dist/src/components/ui/label.d.ts.map +1 -1
  245. package/dist/src/components/ui/label.js +2 -3
  246. package/dist/src/components/ui/loader.js +3 -3
  247. package/dist/src/components/ui/menubar.d.ts +4 -4
  248. package/dist/src/components/ui/menubar.d.ts.map +1 -1
  249. package/dist/src/components/ui/menubar.js +11 -12
  250. package/dist/src/components/ui/navigation-menu.d.ts +2 -2
  251. package/dist/src/components/ui/navigation-menu.d.ts.map +1 -1
  252. package/dist/src/components/ui/navigation-menu.js +10 -11
  253. package/dist/src/components/ui/popover.d.ts +3 -3
  254. package/dist/src/components/ui/popover.d.ts.map +1 -1
  255. package/dist/src/components/ui/popover.js +4 -4
  256. package/dist/src/components/ui/progress.d.ts +2 -2
  257. package/dist/src/components/ui/progress.d.ts.map +1 -1
  258. package/dist/src/components/ui/progress.js +2 -3
  259. package/dist/src/components/ui/radio-group.d.ts +2 -2
  260. package/dist/src/components/ui/radio-group.d.ts.map +1 -1
  261. package/dist/src/components/ui/radio-group.js +3 -4
  262. package/dist/src/components/ui/select.d.ts +3 -3
  263. package/dist/src/components/ui/select.d.ts.map +1 -1
  264. package/dist/src/components/ui/select.js +9 -10
  265. package/dist/src/components/ui/separator.d.ts +2 -2
  266. package/dist/src/components/ui/separator.d.ts.map +1 -1
  267. package/dist/src/components/ui/separator.js +3 -4
  268. package/dist/src/components/ui/sheet.d.ts +5 -5
  269. package/dist/src/components/ui/sheet.d.ts.map +1 -1
  270. package/dist/src/components/ui/sheet.js +8 -9
  271. package/dist/src/components/ui/sidebar.d.ts +31 -31
  272. package/dist/src/components/ui/sidebar.d.ts.map +1 -1
  273. package/dist/src/components/ui/sidebar.js +67 -69
  274. package/dist/src/components/ui/skeleton.d.ts +1 -1
  275. package/dist/src/components/ui/skeleton.js +1 -1
  276. package/dist/src/components/ui/slider.d.ts +2 -2
  277. package/dist/src/components/ui/slider.d.ts.map +1 -1
  278. package/dist/src/components/ui/slider.js +16 -8
  279. package/dist/src/components/ui/sonner.d.ts +1 -1
  280. package/dist/src/components/ui/sonner.d.ts.map +1 -1
  281. package/dist/src/components/ui/sonner.js +6 -6
  282. package/dist/src/components/ui/switch.d.ts +2 -2
  283. package/dist/src/components/ui/switch.d.ts.map +1 -1
  284. package/dist/src/components/ui/switch.js +3 -4
  285. package/dist/src/components/ui/table.d.ts +9 -9
  286. package/dist/src/components/ui/table.d.ts.map +1 -1
  287. package/dist/src/components/ui/table.js +8 -9
  288. package/dist/src/components/ui/tabs.d.ts +2 -2
  289. package/dist/src/components/ui/tabs.d.ts.map +1 -1
  290. package/dist/src/components/ui/tabs.js +4 -5
  291. package/dist/src/components/ui/textarea.d.ts +2 -2
  292. package/dist/src/components/ui/textarea.d.ts.map +1 -1
  293. package/dist/src/components/ui/textarea.js +1 -2
  294. package/dist/src/components/ui/toggle-group.d.ts +4 -4
  295. package/dist/src/components/ui/toggle-group.d.ts.map +1 -1
  296. package/dist/src/components/ui/toggle-group.js +6 -6
  297. package/dist/src/components/ui/toggle.d.ts +3 -3
  298. package/dist/src/components/ui/toggle.d.ts.map +1 -1
  299. package/dist/src/components/ui/toggle.js +8 -9
  300. package/dist/src/components/ui/tooltip.d.ts +3 -3
  301. package/dist/src/components/ui/tooltip.d.ts.map +1 -1
  302. package/dist/src/components/ui/tooltip.js +8 -10
  303. package/dist/src/config.js +2 -2
  304. package/dist/src/database/admins.js +10 -10
  305. package/dist/src/database/languages.js +7 -7
  306. package/dist/src/database/logs.js +9 -9
  307. package/dist/src/database/moderators.js +5 -5
  308. package/dist/src/database/roles.js +1 -1
  309. package/dist/src/database/sessions.js +6 -6
  310. package/dist/src/database/users.d.ts +21 -2
  311. package/dist/src/database/users.d.ts.map +1 -1
  312. package/dist/src/database/users.js +18 -15
  313. package/dist/src/drizzle.config.d.ts +2 -2
  314. package/dist/src/drizzle.config.d.ts.map +1 -1
  315. package/dist/src/drizzle.config.js +19 -12
  316. package/dist/src/emails/default-template.d.ts +34 -22
  317. package/dist/src/emails/default-template.d.ts.map +1 -1
  318. package/dist/src/emails/default-template.js +61 -66
  319. package/dist/src/emails/reset-password.d.ts +56 -0
  320. package/dist/src/emails/reset-password.d.ts.map +1 -0
  321. package/dist/src/emails/reset-password.js +132 -0
  322. package/dist/src/emails/ui/button.d.ts +9 -0
  323. package/dist/src/emails/ui/button.d.ts.map +1 -0
  324. package/dist/src/emails/ui/button.js +36 -0
  325. package/dist/src/emails/ui/card.d.ts +8 -0
  326. package/dist/src/emails/ui/card.d.ts.map +1 -0
  327. package/dist/src/emails/ui/card.js +39 -0
  328. package/dist/src/hooks/use-before-unload.js +3 -3
  329. package/dist/src/hooks/use-captcha.d.ts +2 -2
  330. package/dist/src/hooks/use-captcha.d.ts.map +1 -1
  331. package/dist/src/hooks/use-captcha.js +64 -40
  332. package/dist/src/hooks/use-mobile.d.ts.map +1 -1
  333. package/dist/src/hooks/use-mobile.js +3 -4
  334. package/dist/src/lib/api/get-middleware-api.js +4 -4
  335. package/dist/src/lib/api/get-session-admin-api.js +5 -5
  336. package/dist/src/lib/api/get-session-api.js +4 -4
  337. package/dist/src/lib/colors.js +28 -19
  338. package/dist/src/lib/colors.test.js +60 -60
  339. package/dist/src/lib/config.js +3 -3
  340. package/dist/src/lib/fetcher/cookie-from-string-to-object.d.ts.map +1 -1
  341. package/dist/src/lib/fetcher/cookie-from-string-to-object.js +1 -1
  342. package/dist/src/lib/fetcher/cookie-from-string-to-object.test.js +27 -27
  343. package/dist/src/lib/fetcher/core.d.ts +5 -5
  344. package/dist/src/lib/fetcher/core.d.ts.map +1 -1
  345. package/dist/src/lib/fetcher/core.js +16 -10
  346. package/dist/src/lib/fetcher/helpers-server.d.ts +1 -1
  347. package/dist/src/lib/fetcher/helpers-server.js +1 -1
  348. package/dist/src/lib/fetcher/helpers.test.js +17 -17
  349. package/dist/src/lib/fetcher/types.d.ts +26 -26
  350. package/dist/src/lib/fetcher/types.d.ts.map +1 -1
  351. package/dist/src/lib/fetcher-client.d.ts +4 -4
  352. package/dist/src/lib/fetcher-client.d.ts.map +1 -1
  353. package/dist/src/lib/fetcher-client.js +3 -3
  354. package/dist/src/lib/fetcher.d.ts +5 -5
  355. package/dist/src/lib/fetcher.d.ts.map +1 -1
  356. package/dist/src/lib/fetcher.js +4 -4
  357. package/dist/src/lib/helpers/auto-form.d.ts +3 -3
  358. package/dist/src/lib/helpers/auto-form.d.ts.map +1 -1
  359. package/dist/src/lib/helpers/auto-form.js +16 -15
  360. package/dist/src/lib/helpers/auto-form.test.js +129 -129
  361. package/dist/src/lib/navigation.d.ts +2 -2
  362. package/dist/src/lib/navigation.d.ts.map +1 -1
  363. package/dist/src/lib/plugin.d.ts +3 -3
  364. package/dist/src/lib/special-characters.js +1 -1
  365. package/dist/src/lib/special-characters.test.js +36 -36
  366. package/dist/src/lib/utils.d.ts +1 -1
  367. package/dist/src/tests/setup.d.ts +1 -1
  368. package/dist/src/views/admin/layouts/admin-layout.d.ts +1 -1
  369. package/dist/src/views/admin/layouts/admin-layout.d.ts.map +1 -1
  370. package/dist/src/views/admin/layouts/admin-layout.js +4 -8
  371. package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
  372. package/dist/src/views/admin/layouts/sidebar/nav/item.js +11 -12
  373. package/dist/src/views/admin/layouts/sidebar/nav/nav.d.ts +1 -1
  374. package/dist/src/views/admin/layouts/sidebar/nav/nav.js +11 -11
  375. package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts +1 -1
  376. package/dist/src/views/admin/layouts/sidebar/sidebar.d.ts.map +1 -1
  377. package/dist/src/views/admin/layouts/sidebar/sidebar.js +1 -2
  378. package/dist/src/views/admin/layouts/sidebar/sign-out.js +1 -1
  379. package/dist/src/views/admin/layouts/user-bar/client.js +5 -5
  380. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts +1 -1
  381. package/dist/src/views/admin/layouts/user-bar/user-bar.d.ts.map +1 -1
  382. package/dist/src/views/admin/layouts/user-bar/user-bar.js +1 -1
  383. package/dist/src/views/admin/sign-in/sign-in-admin-view.js +3 -2
  384. package/dist/src/views/admin/views/core/dashboard/dashboard-admin-view.js +3 -3
  385. package/dist/src/views/admin/views/core/debug/actions/clear-cache/clear-cache.js +10 -10
  386. package/dist/src/views/admin/views/core/debug/actions/clear-cache/mutation-api.js +2 -2
  387. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts +1 -1
  388. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.d.ts.map +1 -1
  389. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/content.js +15 -15
  390. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.d.ts +1 -1
  391. package/dist/src/views/admin/views/core/debug/system-logs/actions/more/more.js +7 -7
  392. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.d.ts.map +1 -1
  393. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-status.js +7 -1
  394. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.d.ts +1 -1
  395. package/dist/src/views/admin/views/core/debug/system-logs/badges/badge-type-log.js +3 -3
  396. package/dist/src/views/admin/views/core/debug/system-logs/system-logs-view.js +25 -25
  397. package/dist/src/views/admin/views/core/test.js +43 -43
  398. package/dist/src/views/admin/views/core/users/users-admin-view.d.ts.map +1 -1
  399. package/dist/src/views/admin/views/core/users/users-admin-view.js +13 -14
  400. package/dist/src/views/auth/password-reset/change-password-form/form.d.ts +5 -0
  401. package/dist/src/views/auth/password-reset/change-password-form/form.d.ts.map +1 -0
  402. package/dist/src/views/auth/password-reset/change-password-form/form.js +48 -0
  403. package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts +6 -0
  404. package/dist/src/views/auth/password-reset/change-password-form/mutation-api.d.ts.map +1 -0
  405. package/dist/src/views/auth/password-reset/change-password-form/mutation-api.js +22 -0
  406. package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts +11 -0
  407. package/dist/src/views/auth/password-reset/change-password-form/use-form.d.ts.map +1 -0
  408. package/dist/src/views/auth/password-reset/change-password-form/use-form.js +36 -0
  409. package/dist/src/views/auth/password-reset/form/form.d.ts +6 -0
  410. package/dist/src/views/auth/password-reset/form/form.d.ts.map +1 -0
  411. package/dist/src/views/auth/password-reset/form/form.js +104 -0
  412. package/dist/src/views/auth/password-reset/form/mutation-api.d.ts +7 -0
  413. package/dist/src/views/auth/password-reset/form/mutation-api.d.ts.map +1 -0
  414. package/dist/src/views/auth/password-reset/form/mutation-api.js +21 -0
  415. package/dist/src/views/auth/password-reset/form/use-form.d.ts +12 -0
  416. package/dist/src/views/auth/password-reset/form/use-form.d.ts.map +1 -0
  417. package/dist/src/views/auth/password-reset/form/use-form.js +33 -0
  418. package/dist/src/views/auth/password-reset/password-reset-view.d.ts +7 -0
  419. package/dist/src/views/auth/password-reset/password-reset-view.d.ts.map +1 -0
  420. package/dist/src/views/auth/password-reset/password-reset-view.js +37 -0
  421. package/dist/src/views/auth/sign-in/form/form.d.ts +2 -1
  422. package/dist/src/views/auth/sign-in/form/form.d.ts.map +1 -1
  423. package/dist/src/views/auth/sign-in/form/form.js +15 -10
  424. package/dist/src/views/auth/sign-in/form/mutation-api.d.ts +2 -2
  425. package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -1
  426. package/dist/src/views/auth/sign-in/form/mutation-api.js +10 -10
  427. package/dist/src/views/auth/sign-in/form/use-form.d.ts +2 -2
  428. package/dist/src/views/auth/sign-in/form/use-form.js +11 -11
  429. package/dist/src/views/auth/sign-in/sign-in-view.d.ts.map +1 -1
  430. package/dist/src/views/auth/sign-in/sign-in-view.js +13 -7
  431. package/dist/src/views/auth/{components → sign-up/components}/password-input.d.ts +3 -3
  432. package/dist/src/views/auth/sign-up/components/password-input.d.ts.map +1 -0
  433. package/dist/src/views/auth/{components → sign-up/components}/password-input.js +13 -14
  434. package/dist/src/views/auth/sign-up/email-confirmation-view.js +4 -4
  435. package/dist/src/views/auth/sign-up/form/form.d.ts +2 -2
  436. package/dist/src/views/auth/sign-up/form/form.d.ts.map +1 -1
  437. package/dist/src/views/auth/sign-up/form/form.js +20 -33
  438. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +3 -3
  439. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -1
  440. package/dist/src/views/auth/sign-up/form/mutation-api.js +6 -6
  441. package/dist/src/views/auth/sign-up/form/use-form.d.ts +3 -8
  442. package/dist/src/views/auth/sign-up/form/use-form.d.ts.map +1 -1
  443. package/dist/src/views/auth/sign-up/form/use-form.js +27 -24
  444. package/dist/src/views/auth/sign-up/sign-up-view.js +6 -6
  445. package/dist/src/views/auth/sign-up/wrapper.d.ts +1 -1
  446. package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -1
  447. package/dist/src/views/auth/sign-up/wrapper.js +5 -8
  448. package/dist/src/views/auth/sso/buttons/client.js +4 -4
  449. package/dist/src/views/auth/sso/buttons/mutation-api.js +5 -5
  450. package/dist/src/views/auth/sso/buttons/sso-buttons.js +2 -2
  451. package/dist/src/views/auth/sso/callback/callback-sso-view.d.ts.map +1 -1
  452. package/dist/src/views/auth/sso/callback/callback-sso-view.js +21 -7
  453. package/dist/src/views/auth/sso/callback/client/client.d.ts +3 -1
  454. package/dist/src/views/auth/sso/callback/client/client.d.ts.map +1 -1
  455. package/dist/src/views/auth/sso/callback/client/client.js +36 -7
  456. package/dist/src/views/auth/sso/callback/client/mutation-api.d.ts.map +1 -1
  457. package/dist/src/views/auth/sso/callback/client/mutation-api.js +11 -6
  458. package/dist/src/views/error/back-button.js +1 -1
  459. package/dist/src/views/error/error-view.d.ts +5 -3
  460. package/dist/src/views/error/error-view.d.ts.map +1 -1
  461. package/dist/src/views/error/error-view.js +25 -23
  462. package/dist/src/views/error/global-error-view.d.ts +3 -3
  463. package/dist/src/views/error/global-error-view.d.ts.map +1 -1
  464. package/dist/src/views/error/global-error-view.js +36 -44
  465. package/dist/src/views/layouts/provider.d.ts +4 -4
  466. package/dist/src/views/layouts/provider.d.ts.map +1 -1
  467. package/dist/src/views/layouts/provider.js +3 -3
  468. package/dist/src/views/layouts/root-layout.d.ts +3 -3
  469. package/dist/src/views/layouts/root-layout.d.ts.map +1 -1
  470. package/dist/src/views/layouts/root-layout.js +1 -2
  471. package/dist/src/views/layouts/theme/header/header.d.ts +2 -2
  472. package/dist/src/views/layouts/theme/header/header.d.ts.map +1 -1
  473. package/dist/src/views/layouts/theme/header/header.js +1 -1
  474. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts +1 -1
  475. package/dist/src/views/layouts/theme/header/user/auth/client.d.ts.map +1 -1
  476. package/dist/src/views/layouts/theme/header/user/auth/client.js +4 -4
  477. package/dist/src/views/layouts/theme/header/user/auth/log-out-mutation-api.js +8 -8
  478. package/dist/src/views/layouts/theme/header/user/user.js +4 -4
  479. package/dist/src/views/layouts/theme/layout.d.ts +2 -2
  480. package/dist/src/views/layouts/theme/layout.js +1 -1
  481. package/dist/src/vitnode.config.d.ts +16 -13
  482. package/dist/src/vitnode.config.d.ts.map +1 -1
  483. package/dist/src/vitnode.config.js +3 -2
  484. package/dist/tsconfig.tsbuildinfo +1 -1
  485. package/package.json +44 -46
  486. package/src/app/login/page.tsx +5 -5
  487. package/src/app/login/reset-password/page.tsx +27 -0
  488. package/src/app/login/sso/[providerId]/page.tsx +1 -1
  489. package/src/app/register/page.tsx +5 -5
  490. package/src/app_admin/core/debug/page.tsx +14 -14
  491. package/src/app_admin/core/page.tsx +1 -1
  492. package/src/app_admin/core/test/page.tsx +1 -1
  493. package/src/app_admin/core/users/page.tsx +12 -13
  494. package/src/locales/en.json +42 -2
  495. package/dist/src/views/auth/components/password-input.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitnode/core",
3
- "version": "1.2.0-canary.51",
3
+ "version": "1.2.0-canary.53",
4
4
  "description": "Core package for VitNode, providing essential functionalities and configurations.",
5
5
  "author": "VitNode Team",
6
6
  "license": "MIT",
@@ -19,64 +19,63 @@
19
19
  "core"
20
20
  ],
21
21
  "peerDependencies": {
22
- "@hono/zod-openapi": "1.0.x",
22
+ "@hono/zod-openapi": "^1.0.x",
23
23
  "@swc/cli": "0.6.x",
24
24
  "@swc/core": "1.12.x",
25
- "@types/react": "19.1.x",
26
- "@types/react-dom": "19.1.x",
27
- "drizzle-kit": "0.31.x",
25
+ "@types/react": "^19.1.x",
26
+ "@types/react-dom": "^19.1.x",
27
+ "drizzle-kit": "^0.31.x",
28
28
  "drizzle-orm": "^0.44.x",
29
- "hono": "4.8.x",
29
+ "hono": "^4.9.x",
30
30
  "motion": "^12.x.x",
31
- "next": "15.4.x",
32
- "next-intl": "4.x.x",
33
- "react": "19.1.x",
34
- "react-dom": "19.1.x",
31
+ "next": "^15.5.x",
32
+ "next-intl": "^4.x.x",
33
+ "react": "^19.1.x",
34
+ "react-dom": "^19.1.x",
35
35
  "react-hook-form": "^7.x.x",
36
- "typescript": "^5.8.x",
37
- "zod": "4.x.x"
36
+ "typescript": "^5.9.x",
37
+ "zod": "^4.x.x"
38
38
  },
39
39
  "devDependencies": {
40
- "@hono/zod-openapi": "^1.0.2",
40
+ "@hono/zod-openapi": "^1.1.0",
41
41
  "@hono/zod-validator": "^0.7.2",
42
- "@hookform/resolvers": "^5.1.1",
43
- "@react-email/components": "^0.3.2",
42
+ "@hookform/resolvers": "^5.2.1",
43
+ "@react-email/components": "^0.5.1",
44
44
  "@swc/cli": "0.6.0",
45
- "@swc/core": "^1.13.1",
46
- "@testing-library/dom": "^10.4.0",
45
+ "@swc/core": "^1.13.3",
46
+ "@testing-library/dom": "^10.4.1",
47
47
  "@testing-library/react": "^16.3.0",
48
- "@types/node": "^24.1.0",
49
- "@types/nodemailer": "^6.4.17",
50
- "@types/react": "^19.1.8",
51
- "@types/react-dom": "^19.1.6",
52
- "@vitejs/plugin-react": "^4.7.0",
48
+ "@types/node": "^24.3.0",
49
+ "@types/nodemailer": "^7.0.1",
50
+ "@types/react": "^19.1.10",
51
+ "@types/react-dom": "^19.1.7",
52
+ "@vitejs/plugin-react": "^5.0.1",
53
53
  "@vitest/coverage-v8": "^3.2.4",
54
54
  "chokidar": "^4.0.3",
55
55
  "concurrently": "^9.2.0",
56
- "dotenv": "^17.2.0",
56
+ "dotenv": "^17.2.1",
57
57
  "drizzle-kit": "^0.31.4",
58
- "drizzle-orm": "^0.44.3",
59
- "eslint": "^9.31.0",
60
- "hono": "^4.8.5",
58
+ "drizzle-orm": "^0.44.4",
59
+ "hono": "^4.9.2",
61
60
  "jsdom": "^26.1.0",
62
- "lucide-react": "^0.525.0",
63
- "next": "^15.4.2",
61
+ "lucide-react": "^0.540.0",
62
+ "next": "^15.5.0",
64
63
  "next-intl": "^4.3.4",
65
- "react": "^19.1.0",
66
- "react-dom": "^19.1.0",
67
- "react-email": "^4.2.3",
68
- "react-hook-form": "^7.60.0",
69
- "sonner": "^2.0.6",
70
- "tailwindcss": "^4.1.11",
64
+ "react": "^19.1.1",
65
+ "react-dom": "^19.1.1",
66
+ "react-email": "^4.2.8",
67
+ "react-hook-form": "^7.62.0",
68
+ "sonner": "^2.0.7",
69
+ "tailwindcss": "^4.1.12",
71
70
  "tsc-alias": "^1.8.16",
72
71
  "tsup": "^8.5.0",
73
- "tsx": "^4.20.3",
74
- "tw-animate-css": "^1.3.5",
75
- "typescript": "^5.8.3",
72
+ "tsx": "^4.20.4",
73
+ "tw-animate-css": "^1.3.7",
74
+ "typescript": "^5.9.2",
76
75
  "vite-tsconfig-paths": "^5.1.4",
77
76
  "vitest": "^3.2.4",
78
- "zod": "^4.0.5",
79
- "@vitnode/eslint-config": "1.2.0-canary.51"
77
+ "zod": "^4.0.17",
78
+ "@vitnode/config": "1.2.0-canary.53"
80
79
  },
81
80
  "bin": {
82
81
  "vitnode": "./dist/scripts/scripts.js"
@@ -99,19 +98,20 @@
99
98
  "dependencies": {
100
99
  "@dnd-kit/core": "^6.3.1",
101
100
  "@hono/swagger-ui": "^0.5.2",
102
- "@tanstack/react-query": "^5.83.0",
101
+ "@react-email/preview-server": "^4.2.8",
102
+ "@tanstack/react-query": "^5.85.5",
103
103
  "class-variance-authority": "^0.7.1",
104
104
  "clsx": "^2.1.1",
105
105
  "cmdk": "^1.1.1",
106
106
  "input-otp": "^1.4.2",
107
- "motion": "^12.23.6",
107
+ "motion": "^12.23.12",
108
108
  "next-themes": "^0.4.6",
109
109
  "nodemailer": "^7.0.5",
110
110
  "postgres": "^3.4.7",
111
- "radix-ui": "^1.4.2",
112
- "rate-limiter-flexible": "^7.1.1",
111
+ "radix-ui": "^1.4.3",
112
+ "rate-limiter-flexible": "^7.2.0",
113
113
  "react-scan": "^0.4.3",
114
- "resend": "^4.7.0",
114
+ "resend": "^6.0.1",
115
115
  "tailwind-merge": "^3.3.1",
116
116
  "use-debounce": "^10.0.5",
117
117
  "use-intl": "^4.3.4",
@@ -123,8 +123,6 @@
123
123
  "build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
124
124
  "dev": "concurrently \"tsc -w --preserveWatchOutput\" \"swc src -d dist --config-file .swcrc -w\" \"tsc-alias -w\" \"node dist/scripts/scripts.js plugin --w\"",
125
125
  "dev:email": "email dev --dir src/emails",
126
- "lint": "eslint .",
127
- "lint:fix": "eslint . --fix",
128
126
  "test": "vitest run",
129
127
  "test:watch": "vitest",
130
128
  "test:coverage": "vitest run --coverage"
@@ -1,8 +1,8 @@
1
- import type { Metadata } from 'next/dist/types';
1
+ import type { Metadata } from "next/dist/types";
2
2
 
3
- import { getTranslations } from 'next-intl/server';
3
+ import { getTranslations } from "next-intl/server";
4
4
 
5
- import { SignInView } from '../../views/auth/sign-in/sign-in-view';
5
+ import { SignInView } from "../../views/auth/sign-in/sign-in-view";
6
6
 
7
7
  export const generateMetadata = async ({
8
8
  params,
@@ -10,10 +10,10 @@ export const generateMetadata = async ({
10
10
  params: Promise<{ locale: string }>;
11
11
  }): Promise<Metadata> => {
12
12
  const { locale } = await params;
13
- const t = await getTranslations({ locale, namespace: 'core.global' });
13
+ const t = await getTranslations({ locale, namespace: "core.global" });
14
14
 
15
15
  return {
16
- title: t('login'),
16
+ title: t("login"),
17
17
  };
18
18
  };
19
19
 
@@ -0,0 +1,27 @@
1
+ import type { Metadata } from "next/dist/types";
2
+
3
+ import { getTranslations } from "next-intl/server";
4
+
5
+ import { PasswordResetView } from "@/views/auth/password-reset/password-reset-view";
6
+
7
+ export const generateMetadata = async ({
8
+ params,
9
+ }: {
10
+ params: Promise<{ locale: string }>;
11
+ }): Promise<Metadata> => {
12
+ const { locale } = await params;
13
+ const t = await getTranslations({
14
+ locale,
15
+ namespace: "core.auth.reset_password",
16
+ });
17
+
18
+ return {
19
+ title: t("title"),
20
+ };
21
+ };
22
+
23
+ export default function Page(
24
+ props: React.ComponentProps<typeof PasswordResetView>,
25
+ ) {
26
+ return <PasswordResetView {...props} />;
27
+ }
@@ -1,4 +1,4 @@
1
- import { CallbackSSOView } from '@/views/auth/sso/callback/callback-sso-view';
1
+ import { CallbackSSOView } from "@/views/auth/sso/callback/callback-sso-view";
2
2
 
3
3
  export default async function Page({
4
4
  params,
@@ -1,8 +1,8 @@
1
- import type { Metadata } from 'next/dist/types';
1
+ import type { Metadata } from "next/dist/types";
2
2
 
3
- import { getTranslations } from 'next-intl/server';
3
+ import { getTranslations } from "next-intl/server";
4
4
 
5
- import { SignUpView } from '../../views/auth/sign-up/sign-up-view';
5
+ import { SignUpView } from "../../views/auth/sign-up/sign-up-view";
6
6
 
7
7
  export const generateMetadata = async ({
8
8
  params,
@@ -10,10 +10,10 @@ export const generateMetadata = async ({
10
10
  params: Promise<{ locale: string }>;
11
11
  }): Promise<Metadata> => {
12
12
  const { locale } = await params;
13
- const t = await getTranslations({ locale, namespace: 'core.global' });
13
+ const t = await getTranslations({ locale, namespace: "core.global" });
14
14
 
15
15
  return {
16
- title: t('register'),
16
+ title: t("register"),
17
17
  };
18
18
  };
19
19
 
@@ -1,14 +1,14 @@
1
- import { getTranslations } from 'next-intl/server';
2
- import dynamic from 'next/dynamic';
3
- import React from 'react';
1
+ import dynamic from "next/dynamic";
2
+ import { getTranslations } from "next-intl/server";
3
+ import React from "react";
4
4
 
5
- import { I18nProvider } from '@/components/i18n-provider';
6
- import { DataTableSkeleton } from '@/components/table/data-table';
7
- import { HeaderContent } from '@/components/ui/header-content';
8
- import { ClearCacheAction } from '@/views/admin/views/core/debug/actions/clear-cache/clear-cache';
5
+ import { I18nProvider } from "@/components/i18n-provider";
6
+ import { DataTableSkeleton } from "@/components/table/data-table";
7
+ import { HeaderContent } from "@/components/ui/header-content";
8
+ import { ClearCacheAction } from "@/views/admin/views/core/debug/actions/clear-cache/clear-cache";
9
9
 
10
10
  const SystemLogsView = dynamic(async () =>
11
- import('@/views/admin/views/core/debug/system-logs/system-logs-view').then(
11
+ import("@/views/admin/views/core/debug/system-logs/system-logs-view").then(
12
12
  module => ({
13
13
  default: module.SystemLogsView,
14
14
  }),
@@ -16,27 +16,27 @@ const SystemLogsView = dynamic(async () =>
16
16
  );
17
17
 
18
18
  export const generateMetadata = async () => {
19
- const t = await getTranslations('admin.debug');
19
+ const t = await getTranslations("admin.debug");
20
20
 
21
21
  return {
22
- title: t('title'),
23
- description: t('desc'),
22
+ title: t("title"),
23
+ description: t("desc"),
24
24
  };
25
25
  };
26
26
 
27
27
  export default async function Page(
28
28
  props: React.ComponentProps<typeof SystemLogsView>,
29
29
  ) {
30
- const t = await getTranslations('admin.debug');
30
+ const t = await getTranslations("admin.debug");
31
31
 
32
32
  return (
33
33
  <I18nProvider namespaces="admin.debug">
34
34
  <div className="p-4">
35
- <HeaderContent desc={t('desc')} h1={t('title')}>
35
+ <HeaderContent desc={t("desc")} h1={t("title")}>
36
36
  <ClearCacheAction />
37
37
  </HeaderContent>
38
38
 
39
- <HeaderContent h2={t('logs.title')} />
39
+ <HeaderContent h2={t("logs.title")} />
40
40
  <React.Suspense fallback={<DataTableSkeleton columns={4} />}>
41
41
  <SystemLogsView {...props} />
42
42
  </React.Suspense>
@@ -1,4 +1,4 @@
1
- import { DashboardAdminView } from '../../views/admin/views/core/dashboard/dashboard-admin-view';
1
+ import { DashboardAdminView } from "../../views/admin/views/core/dashboard/dashboard-admin-view";
2
2
 
3
3
  export default function Page() {
4
4
  return <DashboardAdminView />;
@@ -1,4 +1,4 @@
1
- import { TestView } from '../../../views/admin/views/core/test';
1
+ import { TestView } from "../../../views/admin/views/core/test";
2
2
 
3
3
  export default function Page() {
4
4
  return <TestView />;
@@ -1,23 +1,22 @@
1
- import type { Metadata } from 'next/dist/types';
1
+ import type { Metadata } from "next/dist/types";
2
+ import dynamic from "next/dynamic";
3
+ import { getTranslations } from "next-intl/server";
4
+ import React from "react";
2
5
 
3
- import { getTranslations } from 'next-intl/server';
4
- import dynamic from 'next/dynamic';
5
- import React from 'react';
6
-
7
- import { DataTableSkeleton } from '@/components/table/data-table';
8
- import { HeaderContent } from '@/components/ui/header-content';
6
+ import { DataTableSkeleton } from "@/components/table/data-table";
7
+ import { HeaderContent } from "@/components/ui/header-content";
9
8
 
10
9
  const UsersAdminView = dynamic(async () =>
11
- import('@/views/admin/views/core/users/users-admin-view').then(module => ({
10
+ import("@/views/admin/views/core/users/users-admin-view").then(module => ({
12
11
  default: module.UsersAdminView,
13
12
  })),
14
13
  );
15
14
 
16
15
  export const generateMetadata = async (): Promise<Metadata> => {
17
- const t = await getTranslations('admin.global.nav.users');
16
+ const t = await getTranslations("admin.global.nav.users");
18
17
 
19
18
  return {
20
- title: t('list'),
19
+ title: t("list"),
21
20
  };
22
21
  };
23
22
 
@@ -25,13 +24,13 @@ export default async function Page(
25
24
  props: React.ComponentProps<typeof UsersAdminView>,
26
25
  ) {
27
26
  const [t, tNav] = await Promise.all([
28
- getTranslations('admin.user.list'),
29
- getTranslations('admin.global.nav.users'),
27
+ getTranslations("admin.user.list"),
28
+ getTranslations("admin.global.nav.users"),
30
29
  ]);
31
30
 
32
31
  return (
33
32
  <div className="p-4">
34
- <HeaderContent desc={t('desc')} h1={tNav('list')} />
33
+ <HeaderContent desc={t("desc")} h1={tNav("list")} />
35
34
 
36
35
  <React.Suspense fallback={<DataTableSkeleton columns={2} />}>
37
36
  <UsersAdminView {...props} />
@@ -60,6 +60,10 @@
60
60
  "403": {
61
61
  "title": "Forbidden",
62
62
  "desc": "You don't have permission to access this resource."
63
+ },
64
+ "409": {
65
+ "title": "Conflict",
66
+ "desc": "The request could not be completed due to a conflict with the current state of the resource."
63
67
  }
64
68
  },
65
69
  "user_bar": {
@@ -70,7 +74,12 @@
70
74
  "auth": {
71
75
  "sso": {
72
76
  "or": "Or continue With",
73
- "access_denied": "You have denied access to the application or the request has expired. Please try again."
77
+ "access_denied": "You have denied access to the application or the request has expired. Please try again.",
78
+ "email_exists": {
79
+ "title": "You cannot sign in with <provider></provider>",
80
+ "desc": "An account with this email already exists. Please sign in with another method and connect your <provider></provider> account in your profile settings.",
81
+ "sign_in": "Go to Login Page"
82
+ }
74
83
  },
75
84
  "sign_up": {
76
85
  "desc": "Hello there! Create your account to get started.",
@@ -123,7 +132,8 @@
123
132
  },
124
133
  "password": {
125
134
  "label": "Password",
126
- "required": "Password is required."
135
+ "required": "Password is required.",
136
+ "reset": "Forgot password?"
127
137
  },
128
138
  "errors": {
129
139
  "access_denied": {
@@ -132,6 +142,36 @@
132
142
  }
133
143
  },
134
144
  "submit": "Login"
145
+ },
146
+ "reset_password": {
147
+ "title": "Reset Password",
148
+ "desc": "Please enter your email address below to receive a password reset link.",
149
+ "submit": "Send Reset Link",
150
+ "confirmation": {
151
+ "title": "Check your email",
152
+ "desc": "We've sent a password reset link to your email address:",
153
+ "check_spam": "If you don't see the email in your inbox, please check your spam folder."
154
+ },
155
+ "email": {
156
+ "subject": "Reset your password",
157
+ "greeting": "Hello {name}!",
158
+ "intro": "We received a request to reset your password for your account.",
159
+ "button": "Reset Password",
160
+ "instructions": "Click the button above to reset your password. This link will expire in 30 minutes for security reasons.",
161
+ "no_action": "If you didn't request a password reset, you can safely ignore this email. Your password will remain unchanged.",
162
+ "security_note": "For your security, this request was made from IP address: {ip}",
163
+ "help": "If you're having trouble with the button above, copy and paste the URL below into your web browser:",
164
+ "expire_time": "This link will expire on {date}"
165
+ }
166
+ },
167
+ "change_password": {
168
+ "title": "Change Password",
169
+ "desc": "Please enter your new password below.",
170
+ "submit": "Change Password",
171
+ "success": {
172
+ "title": "Password changed successfully",
173
+ "desc": "You can now log in with your new password."
174
+ }
135
175
  }
136
176
  }
137
177
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../../../../src/views/auth/components/password-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAI9E,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAQ9C,eAAO,MAAM,aAAa,GAAI,2FAO3B,0BAA0B,GAC3B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,CAAC,4CA+EjD,CAAC"}