rabbitmq-forward-control 0.1.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 (208) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-build-manifest.json +127 -0
  3. package/.next/app-path-routes-manifest.json +16 -0
  4. package/.next/build-manifest.json +33 -0
  5. package/.next/cache/.previewinfo +1 -0
  6. package/.next/cache/.rscinfo +1 -0
  7. package/.next/cache/.tsbuildinfo +1 -0
  8. package/.next/cache/config.json +7 -0
  9. package/.next/cache/next-devtools-config.json +1 -0
  10. package/.next/cache/webpack/client-development/0.pack.gz +0 -0
  11. package/.next/cache/webpack/client-development/1.pack.gz +0 -0
  12. package/.next/cache/webpack/client-development/2.pack.gz +0 -0
  13. package/.next/cache/webpack/client-development/3.pack.gz +0 -0
  14. package/.next/cache/webpack/client-development/4.pack.gz +0 -0
  15. package/.next/cache/webpack/client-development/index.pack.gz +0 -0
  16. package/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
  17. package/.next/cache/webpack/client-development-fallback/0.pack.gz +0 -0
  18. package/.next/cache/webpack/client-development-fallback/index.pack.gz +0 -0
  19. package/.next/cache/webpack/client-development-fallback/index.pack.gz.old +0 -0
  20. package/.next/cache/webpack/client-production/0.pack +0 -0
  21. package/.next/cache/webpack/client-production/1.pack +0 -0
  22. package/.next/cache/webpack/client-production/2.pack +0 -0
  23. package/.next/cache/webpack/client-production/3.pack +0 -0
  24. package/.next/cache/webpack/client-production/4.pack +0 -0
  25. package/.next/cache/webpack/client-production/5.pack +0 -0
  26. package/.next/cache/webpack/client-production/6.pack +0 -0
  27. package/.next/cache/webpack/client-production/index.pack +0 -0
  28. package/.next/cache/webpack/client-production/index.pack.old +0 -0
  29. package/.next/cache/webpack/edge-server-development/0.pack.gz +0 -0
  30. package/.next/cache/webpack/edge-server-development/1.pack.gz +0 -0
  31. package/.next/cache/webpack/edge-server-development/2.pack.gz +0 -0
  32. package/.next/cache/webpack/edge-server-development/3.pack.gz +0 -0
  33. package/.next/cache/webpack/edge-server-development/index.pack.gz +0 -0
  34. package/.next/cache/webpack/edge-server-development/index.pack.gz.old +0 -0
  35. package/.next/cache/webpack/edge-server-production/0.pack +0 -0
  36. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  37. package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  38. package/.next/cache/webpack/server-development/0.pack.gz +0 -0
  39. package/.next/cache/webpack/server-development/1.pack.gz +0 -0
  40. package/.next/cache/webpack/server-development/2.pack.gz +0 -0
  41. package/.next/cache/webpack/server-development/3.pack.gz +0 -0
  42. package/.next/cache/webpack/server-development/4.pack.gz +0 -0
  43. package/.next/cache/webpack/server-development/index.pack.gz +0 -0
  44. package/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
  45. package/.next/cache/webpack/server-production/0.pack +0 -0
  46. package/.next/cache/webpack/server-production/1.pack +0 -0
  47. package/.next/cache/webpack/server-production/2.pack +0 -0
  48. package/.next/cache/webpack/server-production/3.pack +0 -0
  49. package/.next/cache/webpack/server-production/4.pack +0 -0
  50. package/.next/cache/webpack/server-production/index.pack +0 -0
  51. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  52. package/.next/diagnostics/build-diagnostics.json +6 -0
  53. package/.next/diagnostics/framework.json +1 -0
  54. package/.next/export-marker.json +6 -0
  55. package/.next/images-manifest.json +58 -0
  56. package/.next/next-minimal-server.js.nft.json +1 -0
  57. package/.next/next-server.js.nft.json +1 -0
  58. package/.next/package.json +1 -0
  59. package/.next/prerender-manifest.json +157 -0
  60. package/.next/react-loadable-manifest.json +1 -0
  61. package/.next/required-server-files.json +323 -0
  62. package/.next/routes-manifest.json +77 -0
  63. package/.next/server/app/_not-found/page.js +2 -0
  64. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  65. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  66. package/.next/server/app/_not-found.html +1 -0
  67. package/.next/server/app/_not-found.meta +8 -0
  68. package/.next/server/app/_not-found.rsc +16 -0
  69. package/.next/server/app/api/console/channel/content/route.js +1 -0
  70. package/.next/server/app/api/console/channel/content/route.js.nft.json +1 -0
  71. package/.next/server/app/api/console/channel/content/route_client-reference-manifest.js +1 -0
  72. package/.next/server/app/api/console/channel/list/route.js +1 -0
  73. package/.next/server/app/api/console/channel/list/route.js.nft.json +1 -0
  74. package/.next/server/app/api/console/channel/list/route_client-reference-manifest.js +1 -0
  75. package/.next/server/app/api/console/forwarders/route.js +7 -0
  76. package/.next/server/app/api/console/forwarders/route.js.nft.json +1 -0
  77. package/.next/server/app/api/console/forwarders/route_client-reference-manifest.js +1 -0
  78. package/.next/server/app/api/console/logs/content/route.js +1 -0
  79. package/.next/server/app/api/console/logs/content/route.js.nft.json +1 -0
  80. package/.next/server/app/api/console/logs/content/route_client-reference-manifest.js +1 -0
  81. package/.next/server/app/api/console/logs/route.js +1 -0
  82. package/.next/server/app/api/console/logs/route.js.nft.json +1 -0
  83. package/.next/server/app/api/console/logs/route_client-reference-manifest.js +1 -0
  84. package/.next/server/app/api/console/settings/route.js +6 -0
  85. package/.next/server/app/api/console/settings/route.js.nft.json +1 -0
  86. package/.next/server/app/api/console/settings/route_client-reference-manifest.js +1 -0
  87. package/.next/server/app/api/console/stats/route.js +2 -0
  88. package/.next/server/app/api/console/stats/route.js.nft.json +1 -0
  89. package/.next/server/app/api/console/stats/route_client-reference-manifest.js +1 -0
  90. package/.next/server/app/api/ingest/route.js +6 -0
  91. package/.next/server/app/api/ingest/route.js.nft.json +1 -0
  92. package/.next/server/app/api/ingest/route_client-reference-manifest.js +1 -0
  93. package/.next/server/app/console/forward/page.js +2 -0
  94. package/.next/server/app/console/forward/page.js.nft.json +1 -0
  95. package/.next/server/app/console/forward/page_client-reference-manifest.js +1 -0
  96. package/.next/server/app/console/forward.html +1 -0
  97. package/.next/server/app/console/forward.meta +7 -0
  98. package/.next/server/app/console/forward.rsc +18 -0
  99. package/.next/server/app/console/logs/page.js +2 -0
  100. package/.next/server/app/console/logs/page.js.nft.json +1 -0
  101. package/.next/server/app/console/logs/page_client-reference-manifest.js +1 -0
  102. package/.next/server/app/console/logs.html +1 -0
  103. package/.next/server/app/console/logs.meta +7 -0
  104. package/.next/server/app/console/logs.rsc +18 -0
  105. package/.next/server/app/console/page.js +2 -0
  106. package/.next/server/app/console/page.js.nft.json +1 -0
  107. package/.next/server/app/console/page_client-reference-manifest.js +1 -0
  108. package/.next/server/app/console/receive/page.js +5 -0
  109. package/.next/server/app/console/receive/page.js.nft.json +1 -0
  110. package/.next/server/app/console/receive/page_client-reference-manifest.js +1 -0
  111. package/.next/server/app/console/receive.html +3 -0
  112. package/.next/server/app/console/receive.meta +7 -0
  113. package/.next/server/app/console/receive.rsc +18 -0
  114. package/.next/server/app/console.html +1 -0
  115. package/.next/server/app/console.meta +7 -0
  116. package/.next/server/app/console.rsc +18 -0
  117. package/.next/server/app/index.html +1 -0
  118. package/.next/server/app/index.meta +9 -0
  119. package/.next/server/app/index.rsc +17 -0
  120. package/.next/server/app/page.js +2 -0
  121. package/.next/server/app/page.js.nft.json +1 -0
  122. package/.next/server/app/page_client-reference-manifest.js +1 -0
  123. package/.next/server/app-paths-manifest.json +16 -0
  124. package/.next/server/chunks/393.js +9 -0
  125. package/.next/server/chunks/404.js +6 -0
  126. package/.next/server/chunks/611.js +6 -0
  127. package/.next/server/chunks/730.js +3 -0
  128. package/.next/server/chunks/873.js +22 -0
  129. package/.next/server/chunks/877.js +1 -0
  130. package/.next/server/chunks/880.js +1 -0
  131. package/.next/server/functions-config-manifest.json +4 -0
  132. package/.next/server/instrumentation.js +1 -0
  133. package/.next/server/instrumentation.js.nft.json +1 -0
  134. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  135. package/.next/server/middleware-build-manifest.js +1 -0
  136. package/.next/server/middleware-manifest.json +6 -0
  137. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  138. package/.next/server/next-font-manifest.js +1 -0
  139. package/.next/server/next-font-manifest.json +1 -0
  140. package/.next/server/pages/404.html +1 -0
  141. package/.next/server/pages/500.html +1 -0
  142. package/.next/server/pages/_app.js +1 -0
  143. package/.next/server/pages/_app.js.nft.json +1 -0
  144. package/.next/server/pages/_document.js +1 -0
  145. package/.next/server/pages/_document.js.nft.json +1 -0
  146. package/.next/server/pages/_error.js +19 -0
  147. package/.next/server/pages/_error.js.nft.json +1 -0
  148. package/.next/server/pages-manifest.json +6 -0
  149. package/.next/server/server-reference-manifest.js +1 -0
  150. package/.next/server/server-reference-manifest.json +1 -0
  151. package/.next/server/webpack-runtime.js +1 -0
  152. package/.next/static/chunks/255-1d1a1d3a2611d01b.js +1 -0
  153. package/.next/static/chunks/4bd1b696-844b1d0e78245c10.js +1 -0
  154. package/.next/static/chunks/657-0a7b4068b17a498e.js +1 -0
  155. package/.next/static/chunks/720-7c503373571041c5.js +1 -0
  156. package/.next/static/chunks/909-df1df79f44c4b47c.js +1 -0
  157. package/.next/static/chunks/930-3035d0b294080d0b.js +1 -0
  158. package/.next/static/chunks/app/_not-found/page-e73823794ff40fe9.js +1 -0
  159. package/.next/static/chunks/app/api/console/channel/content/route-70fb17a7b66a8fc3.js +1 -0
  160. package/.next/static/chunks/app/api/console/channel/list/route-70fb17a7b66a8fc3.js +1 -0
  161. package/.next/static/chunks/app/api/console/forwarders/route-70fb17a7b66a8fc3.js +1 -0
  162. package/.next/static/chunks/app/api/console/logs/content/route-70fb17a7b66a8fc3.js +1 -0
  163. package/.next/static/chunks/app/api/console/logs/route-70fb17a7b66a8fc3.js +1 -0
  164. package/.next/static/chunks/app/api/console/settings/route-70fb17a7b66a8fc3.js +1 -0
  165. package/.next/static/chunks/app/api/console/stats/route-70fb17a7b66a8fc3.js +1 -0
  166. package/.next/static/chunks/app/api/ingest/route-70fb17a7b66a8fc3.js +1 -0
  167. package/.next/static/chunks/app/console/forward/page-d9a759ec439080b4.js +1 -0
  168. package/.next/static/chunks/app/console/layout-194de38c97cedfc1.js +1 -0
  169. package/.next/static/chunks/app/console/logs/page-85e15a637bc4c004.js +1 -0
  170. package/.next/static/chunks/app/console/page-4f8bee8de21f562c.js +1 -0
  171. package/.next/static/chunks/app/console/receive/page-abda78a86a468f80.js +1 -0
  172. package/.next/static/chunks/app/layout-4e9c323eacd521ee.js +1 -0
  173. package/.next/static/chunks/app/page-70fb17a7b66a8fc3.js +1 -0
  174. package/.next/static/chunks/framework-0da1eca3ad5a591d.js +1 -0
  175. package/.next/static/chunks/main-891c01a9eeff970d.js +1 -0
  176. package/.next/static/chunks/main-app-c9ceb62c33b0b3f6.js +1 -0
  177. package/.next/static/chunks/pages/_app-5addca2b3b969fde.js +1 -0
  178. package/.next/static/chunks/pages/_error-022e4ac7bbb9914f.js +1 -0
  179. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  180. package/.next/static/chunks/webpack-ad3ccc1e9012aeca.js +1 -0
  181. package/.next/static/css/192808ba9ceee1ad.css +3 -0
  182. package/.next/static/y_Jw6-VHCvpm3If2CrLiz/_buildManifest.js +1 -0
  183. package/.next/static/y_Jw6-VHCvpm3If2CrLiz/_ssgManifest.js +1 -0
  184. package/.next/trace +3 -0
  185. package/.next/types/app/api/console/channel/content/route.ts +347 -0
  186. package/.next/types/app/api/console/channel/list/route.ts +347 -0
  187. package/.next/types/app/api/console/forwarders/route.ts +347 -0
  188. package/.next/types/app/api/console/logs/content/route.ts +347 -0
  189. package/.next/types/app/api/console/logs/route.ts +347 -0
  190. package/.next/types/app/api/console/settings/route.ts +347 -0
  191. package/.next/types/app/api/console/stats/route.ts +347 -0
  192. package/.next/types/app/api/ingest/route.ts +347 -0
  193. package/.next/types/app/console/forward/page.ts +84 -0
  194. package/.next/types/app/console/layout.ts +84 -0
  195. package/.next/types/app/console/logs/page.ts +84 -0
  196. package/.next/types/app/console/page.ts +84 -0
  197. package/.next/types/app/console/receive/page.ts +84 -0
  198. package/.next/types/app/layout.ts +84 -0
  199. package/.next/types/app/page.ts +84 -0
  200. package/.next/types/cache-life.d.ts +141 -0
  201. package/.next/types/package.json +1 -0
  202. package/.next/types/routes.d.ts +85 -0
  203. package/.next/types/validator.ts +187 -0
  204. package/bin/cli.mjs +36 -0
  205. package/next.config.ts +16 -0
  206. package/package.json +63 -0
  207. package/postcss.config.mjs +8 -0
  208. package/tailwind.config.ts +35 -0
@@ -0,0 +1,141 @@
1
+ // Type definitions for Next.js cacheLife configs
2
+
3
+ declare module 'next/cache' {
4
+ export { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache'
5
+ export {
6
+ revalidateTag,
7
+ revalidatePath,
8
+ unstable_expireTag,
9
+ unstable_expirePath,
10
+ } from 'next/dist/server/web/spec-extension/revalidate'
11
+ export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store'
12
+
13
+
14
+ /**
15
+ * Cache this `"use cache"` for a timespan defined by the `"default"` profile.
16
+ * ```
17
+ * stale: 300 seconds (5 minutes)
18
+ * revalidate: 900 seconds (15 minutes)
19
+ * expire: never
20
+ * ```
21
+ *
22
+ * This cache may be stale on clients for 5 minutes before checking with the server.
23
+ * If the server receives a new request after 15 minutes, start revalidating new values in the background.
24
+ * It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request.
25
+ */
26
+ export function unstable_cacheLife(profile: "default"): void
27
+
28
+ /**
29
+ * Cache this `"use cache"` for a timespan defined by the `"seconds"` profile.
30
+ * ```
31
+ * stale: 30 seconds
32
+ * revalidate: 1 seconds
33
+ * expire: 60 seconds (1 minute)
34
+ * ```
35
+ *
36
+ * This cache may be stale on clients for 30 seconds before checking with the server.
37
+ * If the server receives a new request after 1 seconds, start revalidating new values in the background.
38
+ * If this entry has no traffic for 1 minute it will expire. The next request will recompute it.
39
+ */
40
+ export function unstable_cacheLife(profile: "seconds"): void
41
+
42
+ /**
43
+ * Cache this `"use cache"` for a timespan defined by the `"minutes"` profile.
44
+ * ```
45
+ * stale: 300 seconds (5 minutes)
46
+ * revalidate: 60 seconds (1 minute)
47
+ * expire: 3600 seconds (1 hour)
48
+ * ```
49
+ *
50
+ * This cache may be stale on clients for 5 minutes before checking with the server.
51
+ * If the server receives a new request after 1 minute, start revalidating new values in the background.
52
+ * If this entry has no traffic for 1 hour it will expire. The next request will recompute it.
53
+ */
54
+ export function unstable_cacheLife(profile: "minutes"): void
55
+
56
+ /**
57
+ * Cache this `"use cache"` for a timespan defined by the `"hours"` profile.
58
+ * ```
59
+ * stale: 300 seconds (5 minutes)
60
+ * revalidate: 3600 seconds (1 hour)
61
+ * expire: 86400 seconds (1 day)
62
+ * ```
63
+ *
64
+ * This cache may be stale on clients for 5 minutes before checking with the server.
65
+ * If the server receives a new request after 1 hour, start revalidating new values in the background.
66
+ * If this entry has no traffic for 1 day it will expire. The next request will recompute it.
67
+ */
68
+ export function unstable_cacheLife(profile: "hours"): void
69
+
70
+ /**
71
+ * Cache this `"use cache"` for a timespan defined by the `"days"` profile.
72
+ * ```
73
+ * stale: 300 seconds (5 minutes)
74
+ * revalidate: 86400 seconds (1 day)
75
+ * expire: 604800 seconds (1 week)
76
+ * ```
77
+ *
78
+ * This cache may be stale on clients for 5 minutes before checking with the server.
79
+ * If the server receives a new request after 1 day, start revalidating new values in the background.
80
+ * If this entry has no traffic for 1 week it will expire. The next request will recompute it.
81
+ */
82
+ export function unstable_cacheLife(profile: "days"): void
83
+
84
+ /**
85
+ * Cache this `"use cache"` for a timespan defined by the `"weeks"` profile.
86
+ * ```
87
+ * stale: 300 seconds (5 minutes)
88
+ * revalidate: 604800 seconds (1 week)
89
+ * expire: 2592000 seconds (30 days)
90
+ * ```
91
+ *
92
+ * This cache may be stale on clients for 5 minutes before checking with the server.
93
+ * If the server receives a new request after 1 week, start revalidating new values in the background.
94
+ * If this entry has no traffic for 30 days it will expire. The next request will recompute it.
95
+ */
96
+ export function unstable_cacheLife(profile: "weeks"): void
97
+
98
+ /**
99
+ * Cache this `"use cache"` for a timespan defined by the `"max"` profile.
100
+ * ```
101
+ * stale: 300 seconds (5 minutes)
102
+ * revalidate: 2592000 seconds (30 days)
103
+ * expire: never
104
+ * ```
105
+ *
106
+ * This cache may be stale on clients for 5 minutes before checking with the server.
107
+ * If the server receives a new request after 30 days, start revalidating new values in the background.
108
+ * It lives for the maximum age of the server cache. If this entry has no traffic for a while, it may serve an old value the next request.
109
+ */
110
+ export function unstable_cacheLife(profile: "max"): void
111
+
112
+ /**
113
+ * Cache this `"use cache"` using a custom timespan.
114
+ * ```
115
+ * stale: ... // seconds
116
+ * revalidate: ... // seconds
117
+ * expire: ... // seconds
118
+ * ```
119
+ *
120
+ * This is similar to Cache-Control: max-age=`stale`,s-max-age=`revalidate`,stale-while-revalidate=`expire-revalidate`
121
+ *
122
+ * If a value is left out, the lowest of other cacheLife() calls or the default, is used instead.
123
+ */
124
+ export function unstable_cacheLife(profile: {
125
+ /**
126
+ * This cache may be stale on clients for ... seconds before checking with the server.
127
+ */
128
+ stale?: number,
129
+ /**
130
+ * If the server receives a new request after ... seconds, start revalidating new values in the background.
131
+ */
132
+ revalidate?: number,
133
+ /**
134
+ * If this entry has no traffic for ... seconds it will expire. The next request will recompute it.
135
+ */
136
+ expire?: number
137
+ }): void
138
+
139
+
140
+ export { cacheTag as unstable_cacheTag } from 'next/dist/server/use-cache/cache-tag'
141
+ }
@@ -0,0 +1 @@
1
+ {"type": "module"}
@@ -0,0 +1,85 @@
1
+ // This file is generated automatically by Next.js
2
+ // Do not edit this file manually
3
+
4
+ type AppRoutes = "/" | "/console" | "/console/forward" | "/console/logs" | "/console/receive"
5
+ type AppRouteHandlerRoutes = "/api/console/channel/content" | "/api/console/channel/list" | "/api/console/forwarders" | "/api/console/logs" | "/api/console/logs/content" | "/api/console/settings" | "/api/console/stats" | "/api/ingest"
6
+ type PageRoutes = never
7
+ type LayoutRoutes = "/" | "/console"
8
+ type RedirectRoutes = never
9
+ type RewriteRoutes = never
10
+ type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes | AppRouteHandlerRoutes
11
+
12
+
13
+ interface ParamMap {
14
+ "/": {}
15
+ "/api/console/channel/content": {}
16
+ "/api/console/channel/list": {}
17
+ "/api/console/forwarders": {}
18
+ "/api/console/logs": {}
19
+ "/api/console/logs/content": {}
20
+ "/api/console/settings": {}
21
+ "/api/console/stats": {}
22
+ "/api/ingest": {}
23
+ "/console": {}
24
+ "/console/forward": {}
25
+ "/console/logs": {}
26
+ "/console/receive": {}
27
+ }
28
+
29
+
30
+ export type ParamsOf<Route extends Routes> = ParamMap[Route]
31
+
32
+ interface LayoutSlotMap {
33
+ "/": never
34
+ "/console": never
35
+ }
36
+
37
+
38
+ export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap, AppRouteHandlerRoutes }
39
+
40
+ declare global {
41
+ /**
42
+ * Props for Next.js App Router page components
43
+ * @example
44
+ * ```tsx
45
+ * export default function Page(props: PageProps<'/blog/[slug]'>) {
46
+ * const { slug } = await props.params
47
+ * return <div>Blog post: {slug}</div>
48
+ * }
49
+ * ```
50
+ */
51
+ interface PageProps<AppRoute extends AppRoutes> {
52
+ params: Promise<ParamMap[AppRoute]>
53
+ searchParams: Promise<Record<string, string | string[] | undefined>>
54
+ }
55
+
56
+ /**
57
+ * Props for Next.js App Router layout components
58
+ * @example
59
+ * ```tsx
60
+ * export default function Layout(props: LayoutProps<'/dashboard'>) {
61
+ * return <div>{props.children}</div>
62
+ * }
63
+ * ```
64
+ */
65
+ type LayoutProps<LayoutRoute extends LayoutRoutes> = {
66
+ params: Promise<ParamMap[LayoutRoute]>
67
+ children: React.ReactNode
68
+ } & {
69
+ [K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
70
+ }
71
+
72
+ /**
73
+ * Context for Next.js App Router route handlers
74
+ * @example
75
+ * ```tsx
76
+ * export async function GET(request: NextRequest, context: RouteContext<'/api/users/[id]'>) {
77
+ * const { id } = await context.params
78
+ * return Response.json({ id })
79
+ * }
80
+ * ```
81
+ */
82
+ interface RouteContext<AppRouteHandlerRoute extends AppRouteHandlerRoutes> {
83
+ params: Promise<ParamMap[AppRouteHandlerRoute]>
84
+ }
85
+ }
@@ -0,0 +1,187 @@
1
+ // This file is generated automatically by Next.js
2
+ // Do not edit this file manually
3
+ // This file validates that all pages and layouts export the correct types
4
+
5
+ import type { AppRoutes, LayoutRoutes, ParamMap, AppRouteHandlerRoutes } from "./routes.js"
6
+ import type { ResolvingMetadata, ResolvingViewport } from "next/types.js"
7
+ import type { NextRequest } from 'next/server.js'
8
+
9
+ type AppPageConfig<Route extends AppRoutes = AppRoutes> = {
10
+ default: React.ComponentType<{ params: Promise<ParamMap[Route]> } & any> | ((props: { params: Promise<ParamMap[Route]> } & any) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
11
+ generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
12
+ generateMetadata?: (
13
+ props: { params: Promise<ParamMap[Route]> } & any,
14
+ parent: ResolvingMetadata
15
+ ) => Promise<any> | any
16
+ generateViewport?: (
17
+ props: { params: Promise<ParamMap[Route]> } & any,
18
+ parent: ResolvingViewport
19
+ ) => Promise<any> | any
20
+ metadata?: any
21
+ viewport?: any
22
+ }
23
+
24
+ type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
25
+ default: React.ComponentType<LayoutProps<Route>> | ((props: LayoutProps<Route>) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
26
+ generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
27
+ generateMetadata?: (
28
+ props: { params: Promise<ParamMap[Route]> } & any,
29
+ parent: ResolvingMetadata
30
+ ) => Promise<any> | any
31
+ generateViewport?: (
32
+ props: { params: Promise<ParamMap[Route]> } & any,
33
+ parent: ResolvingViewport
34
+ ) => Promise<any> | any
35
+ metadata?: any
36
+ viewport?: any
37
+ }
38
+
39
+ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRoutes> = {
40
+ GET?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
41
+ POST?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
42
+ PUT?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
43
+ PATCH?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
44
+ DELETE?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
45
+ HEAD?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
46
+ OPTIONS?: (request: NextRequest, context: { params: Promise<ParamMap[Route]> }) => Promise<Response | void> | Response | void
47
+ }
48
+
49
+
50
+ // Validate ../../src/app/console/forward/page.tsx
51
+ {
52
+ type __IsExpected<Specific extends AppPageConfig<"/console/forward">> = Specific
53
+ const handler = {} as typeof import("../../src/app/console/forward/page.js")
54
+ type __Check = __IsExpected<typeof handler>
55
+ // @ts-ignore
56
+ type __Unused = __Check
57
+ }
58
+
59
+ // Validate ../../src/app/console/logs/page.tsx
60
+ {
61
+ type __IsExpected<Specific extends AppPageConfig<"/console/logs">> = Specific
62
+ const handler = {} as typeof import("../../src/app/console/logs/page.js")
63
+ type __Check = __IsExpected<typeof handler>
64
+ // @ts-ignore
65
+ type __Unused = __Check
66
+ }
67
+
68
+ // Validate ../../src/app/console/page.tsx
69
+ {
70
+ type __IsExpected<Specific extends AppPageConfig<"/console">> = Specific
71
+ const handler = {} as typeof import("../../src/app/console/page.js")
72
+ type __Check = __IsExpected<typeof handler>
73
+ // @ts-ignore
74
+ type __Unused = __Check
75
+ }
76
+
77
+ // Validate ../../src/app/console/receive/page.tsx
78
+ {
79
+ type __IsExpected<Specific extends AppPageConfig<"/console/receive">> = Specific
80
+ const handler = {} as typeof import("../../src/app/console/receive/page.js")
81
+ type __Check = __IsExpected<typeof handler>
82
+ // @ts-ignore
83
+ type __Unused = __Check
84
+ }
85
+
86
+ // Validate ../../src/app/page.tsx
87
+ {
88
+ type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
89
+ const handler = {} as typeof import("../../src/app/page.js")
90
+ type __Check = __IsExpected<typeof handler>
91
+ // @ts-ignore
92
+ type __Unused = __Check
93
+ }
94
+
95
+ // Validate ../../src/app/api/console/channel/content/route.ts
96
+ {
97
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/channel/content">> = Specific
98
+ const handler = {} as typeof import("../../src/app/api/console/channel/content/route.js")
99
+ type __Check = __IsExpected<typeof handler>
100
+ // @ts-ignore
101
+ type __Unused = __Check
102
+ }
103
+
104
+ // Validate ../../src/app/api/console/channel/list/route.ts
105
+ {
106
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/channel/list">> = Specific
107
+ const handler = {} as typeof import("../../src/app/api/console/channel/list/route.js")
108
+ type __Check = __IsExpected<typeof handler>
109
+ // @ts-ignore
110
+ type __Unused = __Check
111
+ }
112
+
113
+ // Validate ../../src/app/api/console/forwarders/route.ts
114
+ {
115
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/forwarders">> = Specific
116
+ const handler = {} as typeof import("../../src/app/api/console/forwarders/route.js")
117
+ type __Check = __IsExpected<typeof handler>
118
+ // @ts-ignore
119
+ type __Unused = __Check
120
+ }
121
+
122
+ // Validate ../../src/app/api/console/logs/content/route.ts
123
+ {
124
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/logs/content">> = Specific
125
+ const handler = {} as typeof import("../../src/app/api/console/logs/content/route.js")
126
+ type __Check = __IsExpected<typeof handler>
127
+ // @ts-ignore
128
+ type __Unused = __Check
129
+ }
130
+
131
+ // Validate ../../src/app/api/console/logs/route.ts
132
+ {
133
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/logs">> = Specific
134
+ const handler = {} as typeof import("../../src/app/api/console/logs/route.js")
135
+ type __Check = __IsExpected<typeof handler>
136
+ // @ts-ignore
137
+ type __Unused = __Check
138
+ }
139
+
140
+ // Validate ../../src/app/api/console/settings/route.ts
141
+ {
142
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/settings">> = Specific
143
+ const handler = {} as typeof import("../../src/app/api/console/settings/route.js")
144
+ type __Check = __IsExpected<typeof handler>
145
+ // @ts-ignore
146
+ type __Unused = __Check
147
+ }
148
+
149
+ // Validate ../../src/app/api/console/stats/route.ts
150
+ {
151
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/console/stats">> = Specific
152
+ const handler = {} as typeof import("../../src/app/api/console/stats/route.js")
153
+ type __Check = __IsExpected<typeof handler>
154
+ // @ts-ignore
155
+ type __Unused = __Check
156
+ }
157
+
158
+ // Validate ../../src/app/api/ingest/route.ts
159
+ {
160
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/ingest">> = Specific
161
+ const handler = {} as typeof import("../../src/app/api/ingest/route.js")
162
+ type __Check = __IsExpected<typeof handler>
163
+ // @ts-ignore
164
+ type __Unused = __Check
165
+ }
166
+
167
+
168
+
169
+
170
+
171
+ // Validate ../../src/app/console/layout.tsx
172
+ {
173
+ type __IsExpected<Specific extends LayoutConfig<"/console">> = Specific
174
+ const handler = {} as typeof import("../../src/app/console/layout.js")
175
+ type __Check = __IsExpected<typeof handler>
176
+ // @ts-ignore
177
+ type __Unused = __Check
178
+ }
179
+
180
+ // Validate ../../src/app/layout.tsx
181
+ {
182
+ type __IsExpected<Specific extends LayoutConfig<"/">> = Specific
183
+ const handler = {} as typeof import("../../src/app/layout.js")
184
+ type __Check = __IsExpected<typeof handler>
185
+ // @ts-ignore
186
+ type __Unused = __Check
187
+ }
package/bin/cli.mjs ADDED
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from "node:child_process";
3
+ import { fileURLToPath } from "node:url";
4
+ import path from "node:path";
5
+ import fs from "node:fs";
6
+
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
+ const pkgRoot = path.resolve(__dirname, "..");
9
+ const nextCli = path.join(pkgRoot, "node_modules", "next", "dist", "bin", "next");
10
+
11
+ if (!fs.existsSync(nextCli)) {
12
+ console.error(
13
+ "[rabbitmq-forward-control] Next.js not found. Install dependencies in this package (npm install) or run from a project that depends on rabbitmq-forward-control.",
14
+ );
15
+ process.exit(1);
16
+ }
17
+
18
+ const port = process.env.PORT || "3847";
19
+ const host = process.env.HOST || "0.0.0.0";
20
+
21
+ const mode = process.argv.includes("dev") ? "dev" : "start";
22
+ const args =
23
+ mode === "dev"
24
+ ? [nextCli, "dev", "-p", port, "-H", host]
25
+ : [nextCli, "start", "-p", port, "-H", host];
26
+
27
+ const child = spawn(process.execPath, args, {
28
+ cwd: pkgRoot,
29
+ stdio: "inherit",
30
+ env: {
31
+ ...process.env,
32
+ NODE_ENV: mode === "dev" ? "development" : process.env.NODE_ENV || "production",
33
+ },
34
+ });
35
+
36
+ child.on("exit", (code) => process.exit(code ?? 0));
package/next.config.ts ADDED
@@ -0,0 +1,16 @@
1
+ import type { NextConfig } from "next";
2
+
3
+ const nextConfig: NextConfig = {
4
+ reactStrictMode: true,
5
+ eslint: { ignoreDuringBuilds: true },
6
+ serverExternalPackages: ["amqplib"],
7
+ webpack: (config) => {
8
+ config.resolve.alias = {
9
+ ...config.resolve.alias,
10
+ querystring: require.resolve("querystring-es3"),
11
+ };
12
+ return config;
13
+ },
14
+ };
15
+
16
+ export default nextConfig;
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "rabbitmq-forward-control",
3
+ "version": "0.1.0",
4
+ "description": "Next.js console for RabbitMQ HTTP ingest, DingTalk forward, and local file logs",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "rabbitmq-forward-control": "./bin/cli.mjs"
9
+ },
10
+ "files": [
11
+ ".next",
12
+ "public",
13
+ "bin",
14
+ "package.json",
15
+ "next.config.ts",
16
+ "postcss.config.mjs",
17
+ "tailwind.config.ts"
18
+ ],
19
+ "scripts": {
20
+ "dev": "next dev -p 3847",
21
+ "build": "next build",
22
+ "start": "next start -p 3847",
23
+ "typecheck": "tsc --noEmit",
24
+ "verify:http": "node scripts/verify-http.mjs",
25
+ "prepublishOnly": "npm run build"
26
+ },
27
+ "engines": {
28
+ "node": ">=18.18.0"
29
+ },
30
+ "dependencies": {
31
+ "@radix-ui/react-label": "^2.1.2",
32
+ "@radix-ui/react-slot": "^1.1.2",
33
+ "@radix-ui/react-switch": "^1.1.3",
34
+ "@radix-ui/react-tabs": "^1.1.3",
35
+ "amqplib": "^0.10.4",
36
+ "class-variance-authority": "^0.7.1",
37
+ "clsx": "^2.1.1",
38
+ "date-fns": "^4.1.0",
39
+ "lucide-react": "^0.469.0",
40
+ "next": "^15.1.0",
41
+ "querystring-es3": "^0.2.1",
42
+ "react": "^19.0.0",
43
+ "react-dom": "^19.0.0",
44
+ "recharts": "^2.15.0",
45
+ "sonner": "^2.0.7",
46
+ "tailwind-merge": "^2.6.0"
47
+ },
48
+ "devDependencies": {
49
+ "@types/amqplib": "^0.10.5",
50
+ "@types/node": "^22.10.1",
51
+ "@types/react": "^19.0.1",
52
+ "@types/react-dom": "^19.0.2",
53
+ "eslint": "^9.16.0",
54
+ "eslint-config-next": "^15.1.0",
55
+ "postcss": "^8.4.49",
56
+ "tailwindcss": "^3.4.16",
57
+ "typescript": "^5.7.2"
58
+ },
59
+ "publishConfig": {
60
+ "access": "public",
61
+ "registry": "https://registry.npmjs.org/"
62
+ }
63
+ }
@@ -0,0 +1,8 @@
1
+ /** @type {import('postcss-load-config').Config} */
2
+ const config = {
3
+ plugins: {
4
+ tailwindcss: {},
5
+ },
6
+ };
7
+
8
+ export default config;
@@ -0,0 +1,35 @@
1
+ import type { Config } from "tailwindcss";
2
+
3
+ const config: Config = {
4
+ darkMode: "class",
5
+ content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
6
+ theme: {
7
+ extend: {
8
+ borderRadius: {
9
+ lg: "var(--radius)",
10
+ md: "calc(var(--radius) - 2px)",
11
+ sm: "calc(var(--radius) - 4px)",
12
+ },
13
+ colors: {
14
+ border: "hsl(var(--border))",
15
+ background: "hsl(var(--background))",
16
+ foreground: "hsl(var(--foreground))",
17
+ primary: {
18
+ DEFAULT: "hsl(var(--primary))",
19
+ foreground: "hsl(var(--primary-foreground))",
20
+ },
21
+ muted: {
22
+ DEFAULT: "hsl(var(--muted))",
23
+ foreground: "hsl(var(--muted-foreground))",
24
+ },
25
+ card: {
26
+ DEFAULT: "hsl(var(--card))",
27
+ foreground: "hsl(var(--card-foreground))",
28
+ },
29
+ },
30
+ },
31
+ },
32
+ plugins: [],
33
+ };
34
+
35
+ export default config;