wcz-test 1.6.0 → 1.7.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 (192) hide show
  1. package/.prettierignore +4 -0
  2. package/.vs/VSWorkspaceState.json +6 -0
  3. package/.vs/slnx.sqlite +0 -0
  4. package/.vs/wcz-test/CopilotIndices/17.13.441.19478/CodeChunks.db +0 -0
  5. package/.vs/wcz-test/CopilotIndices/17.13.441.19478/SemanticSymbols.db +0 -0
  6. package/.vs/wcz-test/v17/.wsuo +0 -0
  7. package/.vs/wcz-test/v17/DocumentLayout.backup.json +31 -0
  8. package/.vs/wcz-test/v17/DocumentLayout.json +31 -0
  9. package/.vscode/settings.json +11 -0
  10. package/app.config.ts +15 -0
  11. package/dist/index.cjs +36 -0
  12. package/dist/index.cjs.map +1 -0
  13. package/dist/index.d.cts +5 -0
  14. package/dist/index.d.ts +5 -2
  15. package/dist/index.js +8 -1
  16. package/dist/index.js.map +1 -1
  17. package/package.json +36 -45
  18. package/postcss.config.mjs +6 -0
  19. package/public/android-chrome-192x192.png +0 -0
  20. package/public/android-chrome-512x512.png +0 -0
  21. package/public/apple-touch-icon.png +0 -0
  22. package/public/favicon-16x16.png +0 -0
  23. package/public/favicon-32x32.png +0 -0
  24. package/public/favicon.ico +0 -0
  25. package/public/favicon.png +0 -0
  26. package/public/site.webmanifest +19 -0
  27. package/src/api.ts +6 -0
  28. package/src/client.tsx +8 -0
  29. package/src/components/DefaultCatchBoundary.tsx +53 -0
  30. package/src/components/MyComponent.tsx +8 -0
  31. package/src/components/NotFound.tsx +25 -0
  32. package/src/components/PostError.tsx +5 -0
  33. package/src/components/UserError.tsx +5 -0
  34. package/src/global-middleware.ts +6 -0
  35. package/src/index.ts +1 -0
  36. package/src/routeTree.gen.ts +483 -0
  37. package/src/router.tsx +22 -0
  38. package/src/routes/__root.tsx +139 -0
  39. package/src/routes/_pathlessLayout/_nested-layout/route-a.tsx +11 -0
  40. package/src/routes/_pathlessLayout/_nested-layout/route-b.tsx +11 -0
  41. package/src/routes/_pathlessLayout/_nested-layout.tsx +34 -0
  42. package/src/routes/_pathlessLayout.tsx +16 -0
  43. package/src/routes/api/users.$id.ts +24 -0
  44. package/src/routes/api/users.ts +17 -0
  45. package/src/routes/deferred.tsx +62 -0
  46. package/src/routes/index.tsx +13 -0
  47. package/src/routes/posts.$postId.tsx +34 -0
  48. package/src/routes/posts.index.tsx +9 -0
  49. package/src/routes/posts.route.tsx +38 -0
  50. package/src/routes/posts_.$postId.deep.tsx +29 -0
  51. package/src/routes/redirect.tsx +9 -0
  52. package/src/routes/users.$userId.tsx +33 -0
  53. package/src/routes/users.index.tsx +9 -0
  54. package/src/routes/users.route.tsx +48 -0
  55. package/src/ssr.tsx +13 -0
  56. package/src/styles/app.css +22 -0
  57. package/src/utils/loggingMiddleware.tsx +41 -0
  58. package/src/utils/posts.tsx +36 -0
  59. package/src/utils/seo.ts +33 -0
  60. package/src/utils/users.tsx +7 -0
  61. package/tailwind.config.mjs +4 -0
  62. package/tsconfig.json +22 -0
  63. package/tsup.config.ts +10 -0
  64. package/dist/api.d.ts +0 -3
  65. package/dist/api.d.ts.map +0 -1
  66. package/dist/api.js +0 -3
  67. package/dist/api.js.map +0 -1
  68. package/dist/client.d.ts +0 -2
  69. package/dist/client.d.ts.map +0 -1
  70. package/dist/client.js +0 -8
  71. package/dist/client.js.map +0 -1
  72. package/dist/components/DefaultCatchBoundary.d.ts +0 -3
  73. package/dist/components/DefaultCatchBoundary.d.ts.map +0 -1
  74. package/dist/components/DefaultCatchBoundary.js +0 -17
  75. package/dist/components/DefaultCatchBoundary.js.map +0 -1
  76. package/dist/components/MyComponent.d.ts +0 -3
  77. package/dist/components/MyComponent.d.ts.map +0 -1
  78. package/dist/components/MyComponent.js +0 -5
  79. package/dist/components/MyComponent.js.map +0 -1
  80. package/dist/components/NotFound.d.ts +0 -4
  81. package/dist/components/NotFound.d.ts.map +0 -1
  82. package/dist/components/NotFound.js +0 -6
  83. package/dist/components/NotFound.js.map +0 -1
  84. package/dist/components/PostError.d.ts +0 -3
  85. package/dist/components/PostError.d.ts.map +0 -1
  86. package/dist/components/PostError.js +0 -6
  87. package/dist/components/PostError.js.map +0 -1
  88. package/dist/components/UserError.d.ts +0 -3
  89. package/dist/components/UserError.d.ts.map +0 -1
  90. package/dist/components/UserError.js +0 -6
  91. package/dist/components/UserError.js.map +0 -1
  92. package/dist/global-middleware.d.ts +0 -2
  93. package/dist/global-middleware.d.ts.map +0 -1
  94. package/dist/global-middleware.js +0 -6
  95. package/dist/global-middleware.js.map +0 -1
  96. package/dist/index.d.ts.map +0 -1
  97. package/dist/routeTree.gen.d.ts +0 -249
  98. package/dist/routeTree.gen.d.ts.map +0 -1
  99. package/dist/routeTree.gen.js +0 -205
  100. package/dist/routeTree.gen.js.map +0 -1
  101. package/dist/router.d.ts +0 -7
  102. package/dist/router.d.ts.map +0 -1
  103. package/dist/router.js +0 -16
  104. package/dist/router.js.map +0 -1
  105. package/dist/routes/__root.d.ts +0 -2
  106. package/dist/routes/__root.d.ts.map +0 -1
  107. package/dist/routes/__root.js +0 -74
  108. package/dist/routes/__root.js.map +0 -1
  109. package/dist/routes/_pathlessLayout/_nested-layout/route-a.d.ts +0 -2
  110. package/dist/routes/_pathlessLayout/_nested-layout/route-a.d.ts.map +0 -1
  111. package/dist/routes/_pathlessLayout/_nested-layout/route-a.js +0 -9
  112. package/dist/routes/_pathlessLayout/_nested-layout/route-a.js.map +0 -1
  113. package/dist/routes/_pathlessLayout/_nested-layout/route-b.d.ts +0 -2
  114. package/dist/routes/_pathlessLayout/_nested-layout/route-b.d.ts.map +0 -1
  115. package/dist/routes/_pathlessLayout/_nested-layout/route-b.js +0 -9
  116. package/dist/routes/_pathlessLayout/_nested-layout/route-b.js.map +0 -1
  117. package/dist/routes/_pathlessLayout/_nested-layout.d.ts +0 -2
  118. package/dist/routes/_pathlessLayout/_nested-layout.d.ts.map +0 -1
  119. package/dist/routes/_pathlessLayout/_nested-layout.js +0 -13
  120. package/dist/routes/_pathlessLayout/_nested-layout.js.map +0 -1
  121. package/dist/routes/_pathlessLayout.d.ts +0 -2
  122. package/dist/routes/_pathlessLayout.d.ts.map +0 -1
  123. package/dist/routes/_pathlessLayout.js +0 -9
  124. package/dist/routes/_pathlessLayout.js.map +0 -1
  125. package/dist/routes/api/users.$id.d.ts +0 -5
  126. package/dist/routes/api/users.$id.d.ts.map +0 -1
  127. package/dist/routes/api/users.$id.js +0 -21
  128. package/dist/routes/api/users.$id.js.map +0 -1
  129. package/dist/routes/api/users.d.ts +0 -5
  130. package/dist/routes/api/users.d.ts.map +0 -1
  131. package/dist/routes/api/users.js +0 -12
  132. package/dist/routes/api/users.js.map +0 -1
  133. package/dist/routes/deferred.d.ts +0 -12
  134. package/dist/routes/deferred.d.ts.map +0 -1
  135. package/dist/routes/deferred.js +0 -31
  136. package/dist/routes/deferred.js.map +0 -1
  137. package/dist/routes/index.d.ts +0 -2
  138. package/dist/routes/index.d.ts.map +0 -1
  139. package/dist/routes/index.js +0 -9
  140. package/dist/routes/index.js.map +0 -1
  141. package/dist/routes/posts.$postId.d.ts +0 -14
  142. package/dist/routes/posts.$postId.d.ts.map +0 -1
  143. package/dist/routes/posts.$postId.js +0 -20
  144. package/dist/routes/posts.$postId.js.map +0 -1
  145. package/dist/routes/posts.index.d.ts +0 -6
  146. package/dist/routes/posts.index.d.ts.map +0 -1
  147. package/dist/routes/posts.index.js +0 -9
  148. package/dist/routes/posts.index.js.map +0 -1
  149. package/dist/routes/posts.route.d.ts +0 -6
  150. package/dist/routes/posts.route.d.ts.map +0 -1
  151. package/dist/routes/posts.route.js +0 -16
  152. package/dist/routes/posts.route.js.map +0 -1
  153. package/dist/routes/posts_.$postId.deep.d.ts +0 -6
  154. package/dist/routes/posts_.$postId.deep.d.ts.map +0 -1
  155. package/dist/routes/posts_.$postId.deep.js +0 -16
  156. package/dist/routes/posts_.$postId.deep.js.map +0 -1
  157. package/dist/routes/redirect.d.ts +0 -2
  158. package/dist/routes/redirect.d.ts.map +0 -1
  159. package/dist/routes/redirect.js +0 -9
  160. package/dist/routes/redirect.js.map +0 -1
  161. package/dist/routes/users.$userId.d.ts +0 -3
  162. package/dist/routes/users.$userId.d.ts.map +0 -1
  163. package/dist/routes/users.$userId.js +0 -26
  164. package/dist/routes/users.$userId.js.map +0 -1
  165. package/dist/routes/users.index.d.ts +0 -2
  166. package/dist/routes/users.index.d.ts.map +0 -1
  167. package/dist/routes/users.index.js +0 -10
  168. package/dist/routes/users.index.js.map +0 -1
  169. package/dist/routes/users.route.d.ts +0 -3
  170. package/dist/routes/users.route.d.ts.map +0 -1
  171. package/dist/routes/users.route.js +0 -27
  172. package/dist/routes/users.route.js.map +0 -1
  173. package/dist/ssr.d.ts +0 -3
  174. package/dist/ssr.d.ts.map +0 -1
  175. package/dist/ssr.js +0 -9
  176. package/dist/ssr.js.map +0 -1
  177. package/dist/utils/loggingMiddleware.d.ts +0 -9
  178. package/dist/utils/loggingMiddleware.d.ts.map +0 -1
  179. package/dist/utils/loggingMiddleware.js +0 -35
  180. package/dist/utils/loggingMiddleware.js.map +0 -1
  181. package/dist/utils/posts.d.ts +0 -8
  182. package/dist/utils/posts.d.ts.map +0 -1
  183. package/dist/utils/posts.js +0 -26
  184. package/dist/utils/posts.js.map +0 -1
  185. package/dist/utils/seo.d.ts +0 -15
  186. package/dist/utils/seo.d.ts.map +0 -1
  187. package/dist/utils/seo.js +0 -23
  188. package/dist/utils/seo.js.map +0 -1
  189. package/dist/utils/users.d.ts +0 -7
  190. package/dist/utils/users.d.ts.map +0 -1
  191. package/dist/utils/users.js +0 -2
  192. package/dist/utils/users.js.map +0 -1
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Link, Outlet, createFileRoute } from '@tanstack/react-router';
3
- import axios from 'redaxios';
4
- import { DEPLOY_URL } from '../utils/users';
5
- export const Route = createFileRoute('/users')({
6
- loader: async () => {
7
- return await axios
8
- .get(DEPLOY_URL + '/api/users')
9
- .then((r) => r.data)
10
- .catch(() => {
11
- throw new Error('Failed to fetch users');
12
- });
13
- },
14
- component: UsersLayoutComponent,
15
- });
16
- function UsersLayoutComponent() {
17
- const users = Route.useLoaderData();
18
- return (_jsxs("div", { className: "p-2 flex gap-2", children: [_jsx("ul", { className: "list-disc pl-4", children: [
19
- ...users,
20
- { id: 'i-do-not-exist', name: 'Non-existent User', email: '' },
21
- ].map((user) => {
22
- return (_jsx("li", { className: "whitespace-nowrap", children: _jsx(Link, { to: "/users/$userId", params: {
23
- userId: String(user.id),
24
- }, className: "block py-1 text-blue-800 hover:text-blue-600", activeProps: { className: 'text-black font-bold' }, children: _jsx("div", { children: user.name }) }) }, user.id));
25
- }) }), _jsx("hr", {}), _jsx(Outlet, {})] }));
26
- }
27
- //# sourceMappingURL=users.route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.route.js","sourceRoot":"","sources":["../../src/routes/users.route.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG3C,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,OAAO,MAAM,KAAK;aACf,GAAG,CAAc,UAAU,GAAG,YAAY,CAAC;aAC3C,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;aACnB,KAAK,CAAC,GAAG,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAA;QAC1C,CAAC,CAAC,CAAA;IACN,CAAC;IACD,SAAS,EAAE,oBAAoB;CAChC,CAAC,CAAA;AAEF,SAAS,oBAAoB;IAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,aAAa,EAAE,CAAA;IAEnC,OAAO,CACL,eAAK,SAAS,EAAC,gBAAgB,aAC7B,aAAI,SAAS,EAAC,gBAAgB,YAC3B;oBACC,GAAG,KAAK;oBACR,EAAE,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,EAAE,EAAE;iBAC/D,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACb,OAAO,CACL,aAAkB,SAAS,EAAC,mBAAmB,YAC7C,KAAC,IAAI,IACH,EAAE,EAAC,gBAAgB,EACnB,MAAM,EAAE;gCACN,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;6BACxB,EACD,SAAS,EAAC,8CAA8C,EACxD,WAAW,EAAE,EAAE,SAAS,EAAE,sBAAsB,EAAE,YAElD,wBAAM,IAAI,CAAC,IAAI,GAAO,GACjB,IAVA,IAAI,CAAC,EAAE,CAWX,CACN,CAAA;gBACH,CAAC,CAAC,GACC,EACL,cAAM,EACN,KAAC,MAAM,KAAG,IACN,CACP,CAAA;AACH,CAAC"}
package/dist/ssr.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, unknown>;
2
- export default _default;
3
- //# sourceMappingURL=ssr.d.ts.map
package/dist/ssr.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssr.d.ts","sourceRoot":"","sources":["../src/ssr.tsx"],"names":[],"mappings":";AASA,wBAGwB"}
package/dist/ssr.js DELETED
@@ -1,9 +0,0 @@
1
- /// <reference types="vinxi/types/server" />
2
- import { createStartHandler, defaultStreamHandler, } from '@tanstack/react-start/server';
3
- import { getRouterManifest } from '@tanstack/react-start/router-manifest';
4
- import { createRouter } from './router';
5
- export default createStartHandler({
6
- createRouter,
7
- getRouterManifest,
8
- })(defaultStreamHandler);
9
- //# sourceMappingURL=ssr.js.map
package/dist/ssr.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssr.js","sourceRoot":"","sources":["../src/ssr.tsx"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,eAAe,kBAAkB,CAAC;IAChC,YAAY;IACZ,iBAAiB;CAClB,CAAC,CAAC,oBAAoB,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- export declare const logMiddleware: import("@tanstack/start-client-core").MiddlewareAfterClient<readonly [import("@tanstack/start-client-core").MiddlewareAfterServer<unknown, undefined, undefined, {
2
- clientTime: Date;
3
- }, {
4
- clientTime: Date;
5
- }, {
6
- serverTime: Date;
7
- durationToServer: number;
8
- }, import("@tanstack/start-client-core").ServerFnResponseType>], undefined, undefined, undefined, import("@tanstack/start-client-core").ServerFnResponseType>;
9
- //# sourceMappingURL=loggingMiddleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loggingMiddleware.d.ts","sourceRoot":"","sources":["../../src/utils/loggingMiddleware.tsx"],"names":[],"mappings":"AA2BA,eAAO,MAAM,aAAa;;;;;;;6JAatB,CAAA"}
@@ -1,35 +0,0 @@
1
- import { createMiddleware } from '@tanstack/react-start';
2
- const preLogMiddleware = createMiddleware()
3
- .client(async (ctx) => {
4
- const clientTime = new Date();
5
- return ctx.next({
6
- context: {
7
- clientTime,
8
- },
9
- sendContext: {
10
- clientTime,
11
- },
12
- });
13
- })
14
- .server(async (ctx) => {
15
- const serverTime = new Date();
16
- return ctx.next({
17
- sendContext: {
18
- serverTime,
19
- durationToServer: serverTime.getTime() - ctx.context.clientTime.getTime(),
20
- },
21
- });
22
- });
23
- export const logMiddleware = createMiddleware()
24
- .middleware([preLogMiddleware])
25
- .client(async (ctx) => {
26
- const res = await ctx.next();
27
- const now = new Date();
28
- console.log('Client Req/Res:', {
29
- duration: res.context.clientTime.getTime() - now.getTime(),
30
- durationToServer: res.context.durationToServer,
31
- durationFromServer: now.getTime() - res.context.serverTime.getTime(),
32
- });
33
- return res;
34
- });
35
- //# sourceMappingURL=loggingMiddleware.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loggingMiddleware.js","sourceRoot":"","sources":["../../src/utils/loggingMiddleware.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,gBAAgB,GAAG,gBAAgB,EAAE;KACxC,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACpB,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAA;IAE7B,OAAO,GAAG,CAAC,IAAI,CAAC;QACd,OAAO,EAAE;YACP,UAAU;SACX;QACD,WAAW,EAAE;YACX,UAAU;SACX;KACF,CAAC,CAAA;AACJ,CAAC,CAAC;KACD,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACpB,MAAM,UAAU,GAAG,IAAI,IAAI,EAAE,CAAA;IAE7B,OAAO,GAAG,CAAC,IAAI,CAAC;QACd,WAAW,EAAE;YACX,UAAU;YACV,gBAAgB,EACd,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE;SAC1D;KACF,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,EAAE;KAC5C,UAAU,CAAC,CAAC,gBAAgB,CAAC,CAAC;KAC9B,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACpB,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAA;IAE5B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;IACtB,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;QAC7B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE;QAC1D,gBAAgB,EAAE,GAAG,CAAC,OAAO,CAAC,gBAAgB;QAC9C,kBAAkB,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE;KACrE,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- export type PostType = {
2
- id: string;
3
- title: string;
4
- body: string;
5
- };
6
- export declare const fetchPost: import("node_modules/@tanstack/start-client-core/dist/esm/createServerFn").RequiredFetcher<undefined, (d: string) => string, PostType, "data">;
7
- export declare const fetchPosts: import("node_modules/@tanstack/start-client-core/dist/esm/createServerFn").OptionalFetcher<undefined, undefined, PostType[], "data">;
8
- //# sourceMappingURL=posts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"posts.d.ts","sourceRoot":"","sources":["../../src/utils/posts.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,SAAS,4GACL,MAAM,8BAenB,CAAA;AAEJ,eAAO,MAAM,UAAU,sIAOtB,CAAA"}
@@ -1,26 +0,0 @@
1
- import { notFound } from '@tanstack/react-router';
2
- import { createServerFn } from '@tanstack/react-start';
3
- import axios from 'redaxios';
4
- export const fetchPost = createServerFn({ method: 'GET' })
5
- .validator((d) => d)
6
- .handler(async ({ data }) => {
7
- console.info(`Fetching post with id ${data}...`);
8
- const post = await axios
9
- .get(`https://jsonplaceholder.typicode.com/posts/${data}`)
10
- .then((r) => r.data)
11
- .catch((err) => {
12
- console.error(err);
13
- if (err.status === 404) {
14
- throw notFound();
15
- }
16
- throw err;
17
- });
18
- return post;
19
- });
20
- export const fetchPosts = createServerFn({ method: 'GET' }).handler(async () => {
21
- console.info('Fetching posts...');
22
- return axios
23
- .get('https://jsonplaceholder.typicode.com/posts')
24
- .then((r) => r.data.slice(0, 10));
25
- });
26
- //# sourceMappingURL=posts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/utils/posts.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,MAAM,UAAU,CAAA;AAQ5B,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;KACvD,SAAS,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC;KAC3B,OAAO,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1B,OAAO,CAAC,IAAI,CAAC,yBAAyB,IAAI,KAAK,CAAC,CAAA;IAChD,MAAM,IAAI,GAAG,MAAM,KAAK;SACrB,GAAG,CAAW,8CAA8C,IAAI,EAAE,CAAC;SACnE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SACnB,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAClB,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YACvB,MAAM,QAAQ,EAAE,CAAA;QAClB,CAAC;QACD,MAAM,GAAG,CAAA;IACX,CAAC,CAAC,CAAA;IAEJ,OAAO,IAAI,CAAA;AACb,CAAC,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CACjE,KAAK,IAAI,EAAE;IACT,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IACjC,OAAO,KAAK;SACT,GAAG,CAAkB,4CAA4C,CAAC;SAClE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AACrC,CAAC,CACF,CAAA"}
@@ -1,15 +0,0 @@
1
- export declare const seo: ({ title, description, keywords, image, }: {
2
- title: string;
3
- description?: string;
4
- image?: string;
5
- keywords?: string;
6
- }) => ({
7
- title: string;
8
- name?: undefined;
9
- content?: undefined;
10
- } | {
11
- name: string;
12
- content: string | undefined;
13
- title?: undefined;
14
- })[];
15
- //# sourceMappingURL=seo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo.d.ts","sourceRoot":"","sources":["../../src/utils/seo.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,GAAI,0CAKjB;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;;;;;;;;IAsBA,CAAA"}
package/dist/utils/seo.js DELETED
@@ -1,23 +0,0 @@
1
- export const seo = ({ title, description, keywords, image, }) => {
2
- const tags = [
3
- { title },
4
- { name: 'description', content: description },
5
- { name: 'keywords', content: keywords },
6
- { name: 'twitter:title', content: title },
7
- { name: 'twitter:description', content: description },
8
- { name: 'twitter:creator', content: '@tannerlinsley' },
9
- { name: 'twitter:site', content: '@tannerlinsley' },
10
- { name: 'og:type', content: 'website' },
11
- { name: 'og:title', content: title },
12
- { name: 'og:description', content: description },
13
- ...(image
14
- ? [
15
- { name: 'twitter:image', content: image },
16
- { name: 'twitter:card', content: 'summary_large_image' },
17
- { name: 'og:image', content: image },
18
- ]
19
- : []),
20
- ];
21
- return tags;
22
- };
23
- //# sourceMappingURL=seo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seo.js","sourceRoot":"","sources":["../../src/utils/seo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAClB,KAAK,EACL,WAAW,EACX,QAAQ,EACR,KAAK,GAMN,EAAE,EAAE;IACH,MAAM,IAAI,GAAG;QACX,EAAE,KAAK,EAAE;QACT,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE;QAC7C,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE;QACvC,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,KAAK,EAAE;QACzC,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,WAAW,EAAE;QACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,gBAAgB,EAAE;QACtD,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB,EAAE;QACnD,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;QACvC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE;QACpC,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE;QAChD,GAAG,CAAC,KAAK;YACP,CAAC,CAAC;gBACE,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,KAAK,EAAE;gBACzC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,qBAAqB,EAAE;gBACxD,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE;aACrC;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- export type User = {
2
- id: number;
3
- name: string;
4
- email: string;
5
- };
6
- export declare const DEPLOY_URL = "http://localhost:3000";
7
- //# sourceMappingURL=users.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/utils/users.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,UAAU,0BAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export const DEPLOY_URL = 'http://localhost:3000';
2
- //# sourceMappingURL=users.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/utils/users.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,UAAU,GAAG,uBAAuB,CAAA"}