create-velox-app 0.4.3 → 0.4.4

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 (174) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/index.js +21 -14
  3. package/dist/index.js.map +1 -1
  4. package/dist/templates/auth.d.ts +6 -3
  5. package/dist/templates/auth.d.ts.map +1 -1
  6. package/dist/templates/auth.js +56 -1112
  7. package/dist/templates/auth.js.map +1 -1
  8. package/dist/templates/compiler.d.ts +68 -0
  9. package/dist/templates/compiler.d.ts.map +1 -0
  10. package/dist/templates/compiler.js +149 -0
  11. package/dist/templates/compiler.js.map +1 -0
  12. package/dist/templates/default.d.ts +5 -2
  13. package/dist/templates/default.d.ts.map +1 -1
  14. package/dist/templates/default.js +51 -509
  15. package/dist/templates/default.js.map +1 -1
  16. package/dist/templates/index.d.ts.map +1 -1
  17. package/dist/templates/index.js +19 -10
  18. package/dist/templates/index.js.map +1 -1
  19. package/dist/templates/placeholders.d.ts +70 -0
  20. package/dist/templates/placeholders.d.ts.map +1 -0
  21. package/dist/templates/placeholders.js +145 -0
  22. package/dist/templates/placeholders.js.map +1 -0
  23. package/dist/templates/shared/index.d.ts +9 -0
  24. package/dist/templates/shared/index.d.ts.map +1 -0
  25. package/dist/templates/shared/index.js +9 -0
  26. package/dist/templates/shared/index.js.map +1 -0
  27. package/dist/templates/shared/root.d.ts +14 -0
  28. package/dist/templates/shared/root.d.ts.map +1 -0
  29. package/dist/templates/shared/root.js +43 -0
  30. package/dist/templates/shared/root.js.map +1 -0
  31. package/dist/templates/shared/web-base.d.ts +18 -0
  32. package/dist/templates/shared/web-base.d.ts.map +1 -0
  33. package/dist/templates/shared/web-base.js +63 -0
  34. package/dist/templates/shared/web-base.js.map +1 -0
  35. package/dist/templates/shared/web-styles.d.ts +10 -0
  36. package/dist/templates/shared/web-styles.d.ts.map +1 -0
  37. package/dist/templates/shared/web-styles.js +26 -0
  38. package/dist/templates/shared/web-styles.js.map +1 -0
  39. package/dist/templates/shared.d.ts +2 -13
  40. package/dist/templates/shared.d.ts.map +1 -1
  41. package/dist/templates/shared.js +2 -289
  42. package/dist/templates/shared.js.map +1 -1
  43. package/dist/templates/source/api/config/app.d.ts +13 -0
  44. package/dist/templates/source/api/config/app.d.ts.map +1 -0
  45. package/dist/templates/source/api/config/app.js +14 -0
  46. package/dist/templates/source/api/config/app.js.map +1 -0
  47. package/dist/templates/source/api/config/auth.d.ts +34 -0
  48. package/dist/templates/source/api/config/auth.d.ts.map +1 -0
  49. package/dist/templates/source/api/config/auth.js +165 -0
  50. package/dist/templates/source/api/config/auth.js.map +1 -0
  51. package/dist/templates/source/api/config/index.auth.d.ts +6 -0
  52. package/dist/templates/source/api/config/index.auth.d.ts.map +1 -0
  53. package/dist/templates/source/api/config/index.auth.js +6 -0
  54. package/dist/templates/source/api/config/index.auth.js.map +1 -0
  55. package/dist/templates/source/api/config/index.default.d.ts +5 -0
  56. package/dist/templates/source/api/config/index.default.d.ts.map +1 -0
  57. package/dist/templates/source/api/config/index.default.js +5 -0
  58. package/dist/templates/source/api/config/index.default.js.map +1 -0
  59. package/dist/templates/source/api/database/index.d.ts +9 -0
  60. package/dist/templates/source/api/database/index.d.ts.map +1 -0
  61. package/dist/templates/source/api/database/index.js +18 -0
  62. package/dist/templates/source/api/database/index.js.map +1 -0
  63. package/dist/templates/source/api/index.auth.d.ts +5 -0
  64. package/dist/templates/source/api/index.auth.d.ts.map +1 -0
  65. package/dist/templates/source/api/index.auth.js +59 -0
  66. package/dist/templates/source/api/index.auth.js.map +1 -0
  67. package/dist/templates/source/api/index.default.d.ts +5 -0
  68. package/dist/templates/source/api/index.default.d.ts.map +1 -0
  69. package/dist/templates/source/api/index.default.js +56 -0
  70. package/dist/templates/source/api/index.default.js.map +1 -0
  71. package/dist/templates/source/api/prisma.config.d.ts +9 -0
  72. package/dist/templates/source/api/prisma.config.d.ts.map +1 -0
  73. package/dist/templates/source/api/prisma.config.js +15 -0
  74. package/dist/templates/source/api/prisma.config.js.map +1 -0
  75. package/dist/templates/source/api/procedures/auth.d.ts +14 -0
  76. package/dist/templates/source/api/procedures/auth.d.ts.map +1 -0
  77. package/dist/templates/source/api/procedures/auth.js +221 -0
  78. package/dist/templates/source/api/procedures/auth.js.map +1 -0
  79. package/dist/templates/source/api/procedures/health.d.ts +5 -0
  80. package/dist/templates/source/api/procedures/health.d.ts.map +1 -0
  81. package/dist/templates/source/api/procedures/health.js +21 -0
  82. package/dist/templates/source/api/procedures/health.js.map +1 -0
  83. package/dist/templates/source/api/procedures/index.auth.d.ts +7 -0
  84. package/dist/templates/source/api/procedures/index.auth.d.ts.map +1 -0
  85. package/dist/templates/source/api/procedures/index.auth.js +7 -0
  86. package/dist/templates/source/api/procedures/index.auth.js.map +1 -0
  87. package/dist/templates/source/api/procedures/index.default.d.ts +6 -0
  88. package/dist/templates/source/api/procedures/index.default.d.ts.map +1 -0
  89. package/dist/templates/source/api/procedures/index.default.js +6 -0
  90. package/dist/templates/source/api/procedures/index.default.js.map +1 -0
  91. package/dist/templates/source/api/procedures/users.auth.d.ts +7 -0
  92. package/dist/templates/source/api/procedures/users.auth.d.ts.map +1 -0
  93. package/dist/templates/source/api/procedures/users.auth.js +111 -0
  94. package/dist/templates/source/api/procedures/users.auth.js.map +1 -0
  95. package/dist/templates/source/api/procedures/users.default.d.ts +5 -0
  96. package/dist/templates/source/api/procedures/users.default.d.ts.map +1 -0
  97. package/dist/templates/source/api/procedures/users.default.js +86 -0
  98. package/dist/templates/source/api/procedures/users.default.js.map +1 -0
  99. package/dist/templates/source/api/schemas/index.d.ts +5 -0
  100. package/dist/templates/source/api/schemas/index.d.ts.map +1 -0
  101. package/dist/templates/source/api/schemas/index.js +5 -0
  102. package/dist/templates/source/api/schemas/index.js.map +1 -0
  103. package/dist/templates/source/api/schemas/user.d.ts +11 -0
  104. package/dist/templates/source/api/schemas/user.d.ts.map +1 -0
  105. package/dist/templates/source/api/schemas/user.js +20 -0
  106. package/dist/templates/source/api/schemas/user.js.map +1 -0
  107. package/dist/templates/source/api/tsup.config.d.ts +3 -0
  108. package/dist/templates/source/api/tsup.config.d.ts.map +1 -0
  109. package/dist/templates/source/api/tsup.config.js +10 -0
  110. package/dist/templates/source/api/tsup.config.js.map +1 -0
  111. package/dist/templates/source/web/main.d.ts +9 -0
  112. package/dist/templates/source/web/main.d.ts.map +1 -0
  113. package/dist/templates/source/web/main.js +27 -0
  114. package/dist/templates/source/web/main.js.map +1 -0
  115. package/dist/templates/source/web/routes/__root.d.ts +2 -0
  116. package/dist/templates/source/web/routes/__root.d.ts.map +1 -0
  117. package/dist/templates/source/web/routes/__root.js +28 -0
  118. package/dist/templates/source/web/routes/__root.js.map +1 -0
  119. package/dist/templates/source/web/routes/about.d.ts +2 -0
  120. package/dist/templates/source/web/routes/about.d.ts.map +1 -0
  121. package/dist/templates/source/web/routes/about.js +33 -0
  122. package/dist/templates/source/web/routes/about.js.map +1 -0
  123. package/dist/templates/source/web/routes/index.auth.d.ts +2 -0
  124. package/dist/templates/source/web/routes/index.auth.d.ts.map +1 -0
  125. package/dist/templates/source/web/routes/index.auth.js +159 -0
  126. package/dist/templates/source/web/routes/index.auth.js.map +1 -0
  127. package/dist/templates/source/web/routes/index.default.d.ts +2 -0
  128. package/dist/templates/source/web/routes/index.default.d.ts.map +1 -0
  129. package/dist/templates/source/web/routes/index.default.js +60 -0
  130. package/dist/templates/source/web/routes/index.default.js.map +1 -0
  131. package/dist/templates/source/web/vite.config.d.ts +3 -0
  132. package/dist/templates/source/web/vite.config.d.ts.map +1 -0
  133. package/dist/templates/source/web/vite.config.js +22 -0
  134. package/dist/templates/source/web/vite.config.js.map +1 -0
  135. package/package.json +11 -9
  136. package/src/templates/source/api/config/app.ts +13 -0
  137. package/src/templates/source/api/config/auth.ts +202 -0
  138. package/src/templates/source/api/config/database.ts +22 -0
  139. package/src/templates/source/api/env.auth +22 -0
  140. package/src/templates/source/api/env.default +13 -0
  141. package/src/templates/source/api/index.auth.ts +30 -0
  142. package/src/templates/source/api/index.default.ts +27 -0
  143. package/src/templates/source/api/package.auth.json +40 -0
  144. package/src/templates/source/api/package.default.json +38 -0
  145. package/src/templates/source/api/prisma/schema.auth.prisma +30 -0
  146. package/src/templates/source/api/prisma/schema.default.prisma +28 -0
  147. package/src/templates/source/api/prisma.config.ts +15 -0
  148. package/src/templates/source/api/procedures/auth.ts +285 -0
  149. package/src/templates/source/api/procedures/health.ts +24 -0
  150. package/src/templates/source/api/procedures/users.auth.ts +170 -0
  151. package/src/templates/source/api/procedures/users.default.ts +119 -0
  152. package/src/templates/source/api/schemas/user.ts +29 -0
  153. package/src/templates/source/api/tsconfig.json +12 -0
  154. package/src/templates/source/api/tsup.config.ts +10 -0
  155. package/src/templates/source/root/CLAUDE.auth.md +148 -0
  156. package/src/templates/source/root/CLAUDE.default.md +128 -0
  157. package/src/templates/source/root/README.md +72 -0
  158. package/src/templates/source/root/gitignore +37 -0
  159. package/src/templates/source/root/package.json +17 -0
  160. package/src/templates/source/root/pnpm-workspace.yaml +2 -0
  161. package/src/templates/source/root/tsconfig.json +19 -0
  162. package/src/templates/source/web/App.module.css +282 -0
  163. package/src/templates/source/web/favicon.svg +12 -0
  164. package/src/templates/source/web/index.html +13 -0
  165. package/src/templates/source/web/main.tsx +38 -0
  166. package/src/templates/source/web/package.json +26 -0
  167. package/src/templates/source/web/routes/__root.tsx +31 -0
  168. package/src/templates/source/web/routes/about.tsx +36 -0
  169. package/src/templates/source/web/routes/index.auth.tsx +230 -0
  170. package/src/templates/source/web/routes/index.default.tsx +79 -0
  171. package/src/templates/source/web/styles/global.css +90 -0
  172. package/src/templates/source/web/tsconfig.json +24 -0
  173. package/src/templates/source/web/vite.config.ts +22 -0
  174. package/LICENSE +0 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.auth.js","sourceRoot":"","sources":["../../../../../src/templates/source/api/procedures/users.auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,SAAS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,EAAE,sCAAsC,EAAE,GAAG,CAAC,CAAC;QACjF,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9D,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC,CAAC;IAEJ,UAAU,EAAE,SAAS,EAAE;SACpB,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACvB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;SAC1C,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;SAC1C,QAAQ,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;QACjC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QACtB,MAAM,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAClD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC,CAAC;CACL,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * User Procedures
3
+ */
4
+ export declare const userProcedures: any;
5
+ //# sourceMappingURL=users.default.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.default.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/api/procedures/users.default.ts"],"names":[],"mappings":"AAAA;;GAEG;AAwCH,eAAO,MAAM,cAAc,KA4EzB,CAAC"}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * User Procedures
3
+ */
4
+ import { defineProcedures, procedure, paginationInputSchema, z } from '@veloxts/velox';
5
+ import { CreateUserInput, UpdateUserInput, UserSchema } from '../schemas/user.js';
6
+ function getDb(ctx) {
7
+ return ctx.db;
8
+ }
9
+ function toUserResponse(dbUser) {
10
+ return {
11
+ id: dbUser.id,
12
+ name: dbUser.name,
13
+ email: dbUser.email,
14
+ createdAt: dbUser.createdAt.toISOString(),
15
+ updatedAt: dbUser.updatedAt.toISOString(),
16
+ };
17
+ }
18
+ export const userProcedures = defineProcedures('users', {
19
+ getUser: procedure()
20
+ .input(z.object({ id: z.string().uuid() }))
21
+ .output(UserSchema.nullable())
22
+ .query(async ({ input, ctx }) => {
23
+ const db = getDb(ctx);
24
+ const user = await db.user.findUnique({ where: { id: input.id } });
25
+ return user ? toUserResponse(user) : null;
26
+ }),
27
+ listUsers: procedure()
28
+ .input(paginationInputSchema.optional())
29
+ .output(z.object({
30
+ data: z.array(UserSchema),
31
+ meta: z.object({
32
+ page: z.number(),
33
+ limit: z.number(),
34
+ total: z.number(),
35
+ }),
36
+ }))
37
+ .query(async ({ input, ctx }) => {
38
+ const db = getDb(ctx);
39
+ const page = input?.page ?? 1;
40
+ const limit = input?.limit ?? 10;
41
+ const skip = (page - 1) * limit;
42
+ const [dbUsers, total] = await Promise.all([
43
+ db.user.findMany({ skip, take: limit }),
44
+ db.user.count(),
45
+ ]);
46
+ return {
47
+ data: dbUsers.map(toUserResponse),
48
+ meta: { page, limit, total },
49
+ };
50
+ }),
51
+ createUser: procedure()
52
+ .input(CreateUserInput)
53
+ .output(UserSchema)
54
+ .mutation(async ({ input, ctx }) => {
55
+ const db = getDb(ctx);
56
+ const user = await db.user.create({ data: input });
57
+ return toUserResponse(user);
58
+ }),
59
+ updateUser: procedure()
60
+ .input(z.object({ id: z.string().uuid() }).merge(UpdateUserInput))
61
+ .output(UserSchema)
62
+ .mutation(async ({ input, ctx }) => {
63
+ const db = getDb(ctx);
64
+ const { id, ...data } = input;
65
+ const user = await db.user.update({ where: { id }, data });
66
+ return toUserResponse(user);
67
+ }),
68
+ patchUser: procedure()
69
+ .input(z.object({ id: z.string().uuid() }).merge(UpdateUserInput))
70
+ .output(UserSchema)
71
+ .mutation(async ({ input, ctx }) => {
72
+ const db = getDb(ctx);
73
+ const { id, ...data } = input;
74
+ const user = await db.user.update({ where: { id }, data });
75
+ return toUserResponse(user);
76
+ }),
77
+ deleteUser: procedure()
78
+ .input(z.object({ id: z.string().uuid() }))
79
+ .output(z.object({ success: z.boolean() }))
80
+ .mutation(async ({ input, ctx }) => {
81
+ const db = getDb(ctx);
82
+ await db.user.delete({ where: { id: input.id } });
83
+ return { success: true };
84
+ }),
85
+ });
86
+ //# sourceMappingURL=users.default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.default.js","sourceRoot":"","sources":["../../../../../src/templates/source/api/procedures/users.default.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAsBlF,SAAS,KAAK,CAAC,GAAoB;IACjC,OAAO,GAAG,CAAC,EAAc,CAAC;AAC5B,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IACpC,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE;QACzC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE;KAC1C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,EAAE;IACtD,OAAO,EAAE,SAAS,EAAE;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,C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;IAC3B,CAAC,CAAC;CACL,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Schema Exports
3
+ */
4
+ export * from './user.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/api/schemas/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Schema Exports
3
+ */
4
+ export * from './user.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/templates/source/api/schemas/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * User Schemas
3
+ */
4
+ import { z } from '@veloxts/velox';
5
+ export declare const UserSchema: any;
6
+ export type User = z.infer<typeof UserSchema>;
7
+ export declare const CreateUserInput: any;
8
+ export type CreateUserData = z.infer<typeof CreateUserInput>;
9
+ export declare const UpdateUserInput: any;
10
+ export type UpdateUserData = z.infer<typeof UpdateUserInput>;
11
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/api/schemas/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAA+B,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,UAAU,KAMrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,eAAO,MAAM,eAAe,KAG1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE7D,eAAO,MAAM,eAAe,KAG1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * User Schemas
3
+ */
4
+ import { createIdSchema, emailSchema, z } from '@veloxts/velox';
5
+ export const UserSchema = z.object({
6
+ id: createIdSchema('uuid'),
7
+ name: z.string().min(1).max(100),
8
+ email: emailSchema,
9
+ createdAt: z.coerce.date().transform((d) => d.toISOString()),
10
+ updatedAt: z.coerce.date().transform((d) => d.toISOString()),
11
+ });
12
+ export const CreateUserInput = z.object({
13
+ name: z.string().min(1).max(100),
14
+ email: emailSchema,
15
+ });
16
+ export const UpdateUserInput = z.object({
17
+ name: z.string().min(1).max(100).optional(),
18
+ email: emailSchema.optional(),
19
+ });
20
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../src/templates/source/api/schemas/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;CAC7D,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,WAAW;CACnB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+ export default _default;
3
+ //# sourceMappingURL=tsup.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsup.config.d.ts","sourceRoot":"","sources":["../../../../src/templates/source/api/tsup.config.ts"],"names":[],"mappings":";AAEA,wBAOG"}
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'tsup';
2
+ export default defineConfig({
3
+ entry: ['src/index.ts'],
4
+ format: ['esm'],
5
+ target: 'node18',
6
+ clean: true,
7
+ dts: false,
8
+ sourcemap: true,
9
+ });
10
+ //# sourceMappingURL=tsup.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsup.config.js","sourceRoot":"","sources":["../../../../src/templates/source/api/tsup.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,eAAe,YAAY,CAAC;IAC1B,KAAK,EAAE,CAAC,cAAc,CAAC;IACvB,MAAM,EAAE,CAAC,KAAK,CAAC;IACf,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,IAAI;IACX,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import './styles/global.css';
2
+ declare const router: any;
3
+ declare module '@tanstack/react-router' {
4
+ interface Register {
5
+ router: typeof router;
6
+ }
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/templates/source/web/main.tsx"],"names":[],"mappings":"AAKA,OAAO,qBAAqB,CAAC;AAa7B,QAAA,MAAM,MAAM,KAA8B,CAAC;AAG3C,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,QAAQ;QAChB,MAAM,EAAE,OAAO,MAAM,CAAC;KACvB;CACF"}
@@ -0,0 +1,27 @@
1
+ import { StrictMode } from 'react';
2
+ import { createRoot } from 'react-dom/client';
3
+ import { RouterProvider, createRouter } from '@tanstack/react-router';
4
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
5
+ import { routeTree } from './routeTree.gen';
6
+ import './styles/global.css';
7
+ // Create query client for data fetching
8
+ const queryClient = new QueryClient({
9
+ defaultOptions: {
10
+ queries: {
11
+ staleTime: 1000 * 60, // 1 minute
12
+ retry: 1,
13
+ },
14
+ },
15
+ });
16
+ // Create router with route tree
17
+ const router = createRouter({ routeTree });
18
+ // Render application
19
+ const rootElement = document.getElementById('root');
20
+ if (!rootElement)
21
+ throw new Error('Root element not found');
22
+ createRoot(rootElement).render(<StrictMode>
23
+ <QueryClientProvider client={queryClient}>
24
+ <RouterProvider router={router}/>
25
+ </QueryClientProvider>
26
+ </StrictMode>);
27
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/templates/source/web/main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,qBAAqB,CAAC;AAE7B,wCAAwC;AACxC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC;IAClC,cAAc,EAAE;QACd,OAAO,EAAE;YACP,SAAS,EAAE,IAAI,GAAG,EAAE,EAAE,WAAW;YACjC,KAAK,EAAE,CAAC;SACT;KACF;CACF,CAAC,CAAC;AAEH,gCAAgC;AAChC,MAAM,MAAM,GAAG,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AAS3C,qBAAqB;AACrB,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AACpD,IAAI,CAAC,WAAW;IAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAE5D,UAAU,CAAC,WAAW,CAAC,CAAC,MAAM,CAC5B,CAAC,UAAU,CACT;IAAA,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CACvC;MAAA,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EACjC;IAAA,EAAE,mBAAmB,CACvB;EAAA,EAAE,UAAU,CAAC,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Route: any;
2
+ //# sourceMappingURL=__root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__root.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/__root.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,KAEhB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { createRootRoute, Outlet, Link } from '@tanstack/react-router';
2
+ import styles from '@/App.module.css';
3
+ export const Route = createRootRoute({
4
+ component: RootLayout,
5
+ });
6
+ function RootLayout() {
7
+ return (<div className={styles.app}>
8
+ <nav className={styles.nav}>
9
+ <div className={styles.navBrand}>
10
+ <Link to="/" className={styles.logo}>
11
+ VeloxTS
12
+ </Link>
13
+ </div>
14
+ <div className={styles.navLinks}>
15
+ <Link to="/" className={styles.navLink} activeProps={{ className: styles.navLinkActive }}>
16
+ Home
17
+ </Link>
18
+ <Link to="/about" className={styles.navLink} activeProps={{ className: styles.navLinkActive }}>
19
+ About
20
+ </Link>
21
+ </div>
22
+ </nav>
23
+ <main className={styles.main}>
24
+ <Outlet />
25
+ </main>
26
+ </div>);
27
+ }
28
+ //# sourceMappingURL=__root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__root.js","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/__root.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;IACnC,SAAS,EAAE,UAAU;CACtB,CAAC,CAAC;AAEH,SAAS,UAAU;IACjB,OAAO,CACL,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CACzB;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CACzB;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC9B;UAAA,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAClC;;UACF,EAAE,IAAI,CACR;QAAA,EAAE,GAAG,CACL;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC9B;UAAA,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CACvF;;UACF,EAAE,IAAI,CACN;UAAA,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CAC5F;;UACF,EAAE,IAAI,CACR;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAC3B;QAAA,CAAC,MAAM,CAAC,AAAD,EACT;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Route: any;
2
+ //# sourceMappingURL=about.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/about.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,KAEhB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { createFileRoute } from '@tanstack/react-router';
2
+ import styles from '@/App.module.css';
3
+ export const Route = createFileRoute('/about')({
4
+ component: AboutPage,
5
+ });
6
+ function AboutPage() {
7
+ return (<div className={styles.container}>
8
+ <div className={styles.hero}>
9
+ <h1 className={styles.title}>About VeloxTS</h1>
10
+ <p className={styles.subtitle}>
11
+ A Laravel-inspired TypeScript framework for full-stack development.
12
+ </p>
13
+ </div>
14
+
15
+ <div className={styles.cards}>
16
+ <div className={styles.card}>
17
+ <h2>Type Safety</h2>
18
+ <p>End-to-end type safety without code generation. Types flow from backend to frontend automatically.</p>
19
+ </div>
20
+
21
+ <div className={styles.card}>
22
+ <h2>Developer Experience</h2>
23
+ <p>Convention over configuration. Sensible defaults with escape hatches when you need them.</p>
24
+ </div>
25
+
26
+ <div className={styles.card}>
27
+ <h2>Modern Stack</h2>
28
+ <p>Built on Fastify, tRPC, Prisma, React, and TanStack Router.</p>
29
+ </div>
30
+ </div>
31
+ </div>);
32
+ }
33
+ //# sourceMappingURL=about.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"about.js","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/about.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC7C,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAEH,SAAS,SAAS;IAChB,OAAO,CACL,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAC/B;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1B;QAAA,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,EAAE,CAC9C;QAAA,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC5B;;QACF,EAAE,CAAC,CACL;MAAA,EAAE,GAAG,CAEL;;MAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAC3B;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1B;UAAA,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,CACnB;UAAA,CAAC,CAAC,CAAC,kGAAkG,EAAE,CAAC,CAC1G;QAAA,EAAE,GAAG,CAEL;;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1B;UAAA,CAAC,EAAE,CAAC,oBAAoB,EAAE,EAAE,CAC5B;UAAA,CAAC,CAAC,CAAC,wFAAwF,EAAE,CAAC,CAChG;QAAA,EAAE,GAAG,CAEL;;QAAA,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1B;UAAA,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,CACpB;UAAA,CAAC,CAAC,CAAC,2DAA2D,EAAE,CAAC,CACnE;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Route: any;
2
+ //# sourceMappingURL=index.auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.auth.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/index.auth.tsx"],"names":[],"mappings":"AA8CA,eAAO,MAAM,KAAK,KAEhB,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { createFileRoute } from '@tanstack/react-router';
2
+ import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
3
+ import { useState } from 'react';
4
+ import styles from '@/App.module.css';
5
+ // API helpers
6
+ const api = {
7
+ get: async (path) => {
8
+ const token = localStorage.getItem('accessToken');
9
+ const res = await fetch(`/api${path}`, {
10
+ headers: token ? { Authorization: `Bearer ${token}` } : {},
11
+ });
12
+ if (!res.ok)
13
+ throw new Error(`HTTP ${res.status}`);
14
+ return res.json();
15
+ },
16
+ post: async (path, data) => {
17
+ const token = localStorage.getItem('accessToken');
18
+ const res = await fetch(`/api${path}`, {
19
+ method: 'POST',
20
+ headers: {
21
+ 'Content-Type': 'application/json',
22
+ ...(token ? { Authorization: `Bearer ${token}` } : {}),
23
+ },
24
+ body: JSON.stringify(data),
25
+ });
26
+ if (!res.ok) {
27
+ const error = await res.json().catch(() => ({}));
28
+ throw new Error(error.message || `HTTP ${res.status}`);
29
+ }
30
+ return res.json();
31
+ },
32
+ };
33
+ export const Route = createFileRoute('/')({
34
+ component: HomePage,
35
+ });
36
+ function HomePage() {
37
+ const queryClient = useQueryClient();
38
+ const [isLogin, setIsLogin] = useState(true);
39
+ const [email, setEmail] = useState('');
40
+ const [password, setPassword] = useState('');
41
+ const [name, setName] = useState('');
42
+ const [error, setError] = useState('');
43
+ // Check if user is logged in
44
+ const { data: user, isLoading } = useQuery({
45
+ queryKey: ['me'],
46
+ queryFn: () => api.get('/auth/me'),
47
+ retry: false,
48
+ });
49
+ const login = useMutation({
50
+ mutationFn: (data) => api.post('/auth/login', data),
51
+ onSuccess: (data) => {
52
+ localStorage.setItem('accessToken', data.accessToken);
53
+ localStorage.setItem('refreshToken', data.refreshToken);
54
+ queryClient.invalidateQueries({ queryKey: ['me'] });
55
+ setError('');
56
+ },
57
+ onError: (err) => {
58
+ setError(err instanceof Error ? err.message : 'Login failed');
59
+ },
60
+ });
61
+ const register = useMutation({
62
+ mutationFn: (data) => api.post('/auth/register', data),
63
+ onSuccess: (data) => {
64
+ localStorage.setItem('accessToken', data.accessToken);
65
+ localStorage.setItem('refreshToken', data.refreshToken);
66
+ queryClient.invalidateQueries({ queryKey: ['me'] });
67
+ setError('');
68
+ },
69
+ onError: (err) => {
70
+ setError(err instanceof Error ? err.message : 'Registration failed');
71
+ },
72
+ });
73
+ const logout = useMutation({
74
+ mutationFn: () => api.post('/auth/logout', {}),
75
+ onSuccess: () => {
76
+ localStorage.removeItem('accessToken');
77
+ localStorage.removeItem('refreshToken');
78
+ queryClient.invalidateQueries({ queryKey: ['me'] });
79
+ },
80
+ });
81
+ const handleSubmit = (e) => {
82
+ e.preventDefault();
83
+ setError('');
84
+ if (isLogin) {
85
+ login.mutate({ email, password });
86
+ }
87
+ else {
88
+ register.mutate({ name, email, password });
89
+ }
90
+ };
91
+ if (isLoading) {
92
+ return (<div className={styles.container}>
93
+ <p className={styles.loading}>Loading...</p>
94
+ </div>);
95
+ }
96
+ // Logged in view
97
+ if (user) {
98
+ return (<div className={styles.container}>
99
+ <div className={styles.hero}>
100
+ <h1 className={styles.title}>Welcome, {user.name}!</h1>
101
+ <p className={styles.subtitle}>{user.email}</p>
102
+ </div>
103
+
104
+ <div className={styles.cards}>
105
+ <div className={styles.card}>
106
+ <h2>Your Profile</h2>
107
+ <p><strong>ID:</strong> {user.id}</p>
108
+ <p><strong>Roles:</strong> {user.roles?.join(', ') || 'user'}</p>
109
+ </div>
110
+
111
+ <div className={styles.card}>
112
+ <h2>Actions</h2>
113
+ <button onClick={() => logout.mutate()} className={styles.button} disabled={logout.isPending}>
114
+ {logout.isPending ? 'Logging out...' : 'Logout'}
115
+ </button>
116
+ </div>
117
+ </div>
118
+ </div>);
119
+ }
120
+ // Login/Register form
121
+ return (<div className={styles.container}>
122
+ <div className={styles.hero}>
123
+ <h1 className={styles.title}>Welcome to VeloxTS</h1>
124
+ <p className={styles.subtitle}>
125
+ Full-stack TypeScript with authentication.
126
+ </p>
127
+ </div>
128
+
129
+ <div className={styles.authCard}>
130
+ <div className={styles.authTabs}>
131
+ <button className={`${styles.authTab} ${isLogin ? styles.authTabActive : ''}`} onClick={() => setIsLogin(true)}>
132
+ Login
133
+ </button>
134
+ <button className={`${styles.authTab} ${!isLogin ? styles.authTabActive : ''}`} onClick={() => setIsLogin(false)}>
135
+ Register
136
+ </button>
137
+ </div>
138
+
139
+ <form onSubmit={handleSubmit} className={styles.form}>
140
+ {!isLogin && (<input type="text" placeholder="Name" value={name} onChange={(e) => setName(e.target.value)} className={styles.input} required minLength={2}/>)}
141
+ <input type="email" placeholder="Email" value={email} onChange={(e) => setEmail(e.target.value)} className={styles.input} required/>
142
+ <input type="password" placeholder="Password" value={password} onChange={(e) => setPassword(e.target.value)} className={styles.input} required minLength={isLogin ? 1 : 12}/>
143
+
144
+ {error && <p className={styles.formError}>{error}</p>}
145
+
146
+ <button type="submit" className={styles.button} disabled={login.isPending || register.isPending}>
147
+ {login.isPending || register.isPending
148
+ ? 'Please wait...'
149
+ : isLogin ? 'Sign In' : 'Create Account'}
150
+ </button>
151
+ </form>
152
+
153
+ {!isLogin && (<p className={styles.formHint}>
154
+ Password: 12+ chars, uppercase, lowercase, number
155
+ </p>)}
156
+ </div>
157
+ </div>);
158
+ }
159
+ //# sourceMappingURL=index.auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.auth.js","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/index.auth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,cAAc;AACd,MAAM,GAAG,GAAG;IACV,GAAG,EAAE,KAAK,EAAM,IAAY,EAAc,EAAE;QAC1C,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAClD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,OAAO,IAAI,EAAE,EAAE;YACrC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE;SAC3D,CAAC,CAAC;QACH,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;QACnD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IACD,IAAI,EAAE,KAAK,EAAM,IAAY,EAAE,IAAa,EAAc,EAAE;QAC1D,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAClD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,OAAO,IAAI,EAAE,EAAE;YACrC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACvD;YAC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CACzB,QAAQ,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC,SAAS,CAAC,CAEhD;YAAA,CAAC,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC,SAAS;YACpC,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAC5C;UAAA,EAAE,MAAM,CACV;QAAA,EAAE,IAAI,CAEN;;QAAA,CAAC,CAAC,OAAO,IAAI,CACX,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC5B;;UACF,EAAE,CAAC,CAAC,CACL,CACH;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const Route: any;
2
+ //# sourceMappingURL=index.default.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.default.d.ts","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/index.default.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,KAAK,KAEhB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { createFileRoute } from '@tanstack/react-router';
2
+ import { useQuery } from '@tanstack/react-query';
3
+ import styles from '@/App.module.css';
4
+ // API helper
5
+ const api = {
6
+ get: async (path) => {
7
+ const res = await fetch(`/api${path}`);
8
+ if (!res.ok)
9
+ throw new Error(`HTTP ${res.status}`);
10
+ return res.json();
11
+ },
12
+ };
13
+ export const Route = createFileRoute('/')({
14
+ component: HomePage,
15
+ });
16
+ function HomePage() {
17
+ const { data: health, isLoading, error } = useQuery({
18
+ queryKey: ['health'],
19
+ queryFn: () => api.get('/health'),
20
+ });
21
+ return (<div className={styles.container}>
22
+ <div className={styles.hero}>
23
+ <h1 className={styles.title}>Welcome to VeloxTS</h1>
24
+ <p className={styles.subtitle}>
25
+ Full-stack TypeScript, beautifully simple.
26
+ </p>
27
+ </div>
28
+
29
+ <div className={styles.cards}>
30
+ <div className={styles.card}>
31
+ <h2>API Status</h2>
32
+ {isLoading ? (<p className={styles.loading}>Checking...</p>) : error ? (<p className={styles.error}>Disconnected</p>) : (<p className={styles.success}>
33
+ {health?.status === 'ok' ? 'Connected' : 'Unknown'}
34
+ </p>)}
35
+ {health && (<p className={styles.meta}>v{health.version}</p>)}
36
+ </div>
37
+
38
+ <div className={styles.card}>
39
+ <h2>Get Started</h2>
40
+ <p>Edit <code>apps/api/src/procedures</code> to add API endpoints.</p>
41
+ <p>Edit <code>apps/web/src/routes</code> to add pages.</p>
42
+ </div>
43
+
44
+ <div className={styles.card}>
45
+ <h2>Documentation</h2>
46
+ <p>
47
+ <a href="https://veloxts.dev" target="_blank" rel="noopener noreferrer">
48
+ VeloxTS Docs
49
+ </a>
50
+ </p>
51
+ <p>
52
+ <a href="https://tanstack.com/router" target="_blank" rel="noopener noreferrer">
53
+ TanStack Router
54
+ </a>
55
+ </p>
56
+ </div>
57
+ </div>
58
+ </div>);
59
+ }
60
+ //# sourceMappingURL=index.default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.default.js","sourceRoot":"","sources":["../../../../../src/templates/source/web/routes/index.default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,aAAa;AACb,MAAM,GAAG,GAAG;IACV,GAAG,EAAE,KAAK,EAAM,IAAY,EAAc,EAAE;QAC1C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;QACnD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;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AG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+ export default _default;
3
+ //# sourceMappingURL=vite.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../../../../src/templates/source/web/vite.config.ts"],"names":[],"mappings":";AAKA,wBAgBG"}