queen-mq 0.1.5 → 0.2.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 (135) hide show
  1. package/README.md +467 -1775
  2. package/package.json +12 -14
  3. package/src/client/client.js +664 -5
  4. package/src/managers/queueManagerOptimized.js +250 -47
  5. package/src/routes/ack.js +3 -3
  6. package/src/server.js +131 -3
  7. package/src/test/advanced-client-tests.js +761 -0
  8. package/src/test/advanced-pattern-tests.js +2 -2
  9. package/src/test/bus-mode-tests.js +6 -6
  10. package/src/test/core-tests.js +1 -1
  11. package/src/test/edge-case-tests.js +2 -2
  12. package/src/test/test-new.js +36 -1
  13. package/src/webapp-dist/assets/Analytics-DJrE4Rz2.css +1 -0
  14. package/src/webapp-dist/assets/Analytics-HEMXKmfJ.js +1 -0
  15. package/src/webapp-dist/assets/ConfirmDialog-YEoCdE7x.js +1 -0
  16. package/src/webapp-dist/assets/ConsumerGroups-CC5VJywp.css +1 -0
  17. package/src/webapp-dist/assets/ConsumerGroups-D8Z20HhZ.js +1 -0
  18. package/src/webapp-dist/assets/Dashboard-BRFOz6it.css +1 -0
  19. package/src/webapp-dist/assets/Dashboard-Bpx9I32h.js +1 -0
  20. package/src/webapp-dist/assets/LoadingSpinner-BPttXcbs.js +1 -0
  21. package/src/webapp-dist/assets/Messages-BOfVHKma.css +1 -0
  22. package/src/webapp-dist/assets/Messages-EKURCbLl.js +1 -0
  23. package/src/webapp-dist/assets/QueueDetail-BXXA7xoZ.css +1 -0
  24. package/src/webapp-dist/assets/QueueDetail-Bmxg0KiA.js +1 -0
  25. package/src/webapp-dist/assets/Queues-CvrJkrZT.css +1 -0
  26. package/src/webapp-dist/assets/Queues-yUx9_3-9.js +1 -0
  27. package/src/webapp-dist/assets/StatusBadge-C1bBtXHh.css +1 -0
  28. package/src/webapp-dist/assets/StatusBadge-C6N84XmO.js +1 -0
  29. package/src/webapp-dist/assets/analytics-BapTekLM.js +1 -0
  30. package/src/webapp-dist/assets/colors-5z6Q_kUr.js +18 -0
  31. package/src/webapp-dist/assets/index-B7w2bKT6.css +1 -0
  32. package/src/webapp-dist/assets/index-CUSnwYTH.js +31 -0
  33. package/src/webapp-dist/assets/messages-CRV6E-xU.js +1 -0
  34. package/src/webapp-dist/assets/queues-BdUbxfBC.js +1 -0
  35. package/src/webapp-dist/assets/resources-Bs9U-ceF.js +1 -0
  36. package/{webapp → src/webapp-dist}/index.html +2 -1
  37. package/API.md +0 -1226
  38. package/AUTH.md +0 -2044
  39. package/CHANGELOG_STATIC_SERVING.md +0 -213
  40. package/DEPLOYMENT.md +0 -425
  41. package/PROGRAMMATIC_SERVER.md +0 -239
  42. package/WEBAPP.md +0 -1889
  43. package/assets/dashboard-01.png +0 -0
  44. package/assets/dashboard.png +0 -0
  45. package/examples/batch-processing.js +0 -58
  46. package/examples/bus-mode.js +0 -239
  47. package/examples/continuous-consumer-optimized.js +0 -215
  48. package/examples/continuous-consumer.js +0 -159
  49. package/examples/continuous-producer.js +0 -343
  50. package/examples/mixed-mode.js +0 -277
  51. package/examples/multi-server-test.js +0 -305
  52. package/examples/programmatic-server.js +0 -58
  53. package/examples/server-with-frontend.js +0 -46
  54. package/examples/single.js +0 -64
  55. package/examples/smartchat-dealyed.js +0 -42
  56. package/examples/smartchat.js +0 -52
  57. package/examples/test-cache-invalidation.js +0 -119
  58. package/examples/test-cache-multi-server.js +0 -245
  59. package/examples/test-complete-client.js +0 -260
  60. package/examples/test-connection-recovery.js +0 -66
  61. package/examples/test-dashboard-api.js +0 -200
  62. package/examples/test-minimal-client.js +0 -112
  63. package/examples/test-queue-creation-policy.js +0 -137
  64. package/examples/test-traceid.js +0 -147
  65. package/server.log +0 -1
  66. package/test-keepalive-v2.sh +0 -22
  67. package/webapp/COLOR_GUIDE.md +0 -118
  68. package/webapp/README.md +0 -143
  69. package/webapp/package-lock.json +0 -3184
  70. package/webapp/package.json +0 -25
  71. package/webapp/postcss.config.js +0 -7
  72. package/webapp/public/assets/queen-logo-blue.svg +0 -210
  73. package/webapp/public/assets/queen-logo-cyan.svg +0 -210
  74. package/webapp/public/assets/queen-logo-indigo.svg +0 -210
  75. package/webapp/public/assets/queen-logo-orange.svg +0 -210
  76. package/webapp/public/assets/queen-logo-pink.svg +0 -210
  77. package/webapp/public/assets/queen-logo-purple.svg +0 -210
  78. package/webapp/public/assets/queen-logo-rose.svg +0 -239
  79. package/webapp/public/assets/queen-logo.svg +0 -263
  80. package/webapp/src/App.vue +0 -19
  81. package/webapp/src/api/analytics.js +0 -10
  82. package/webapp/src/api/client.js +0 -34
  83. package/webapp/src/api/consumers.js +0 -52
  84. package/webapp/src/api/health.js +0 -7
  85. package/webapp/src/api/messages.js +0 -26
  86. package/webapp/src/api/queues.js +0 -14
  87. package/webapp/src/api/resources.js +0 -8
  88. package/webapp/src/assets/styles/main.css +0 -357
  89. package/webapp/src/components/analytics/AnalyticsFilters.vue +0 -87
  90. package/webapp/src/components/analytics/AnalyticsMetrics.vue +0 -57
  91. package/webapp/src/components/analytics/MessageDistributionChart.vue +0 -111
  92. package/webapp/src/components/analytics/MessageFlowChart.vue +0 -173
  93. package/webapp/src/components/analytics/TimeRangeSelector.vue +0 -27
  94. package/webapp/src/components/analytics/TopQueuesChart.vue +0 -132
  95. package/webapp/src/components/common/ConfirmDialog.vue +0 -56
  96. package/webapp/src/components/common/LoadingSpinner.vue +0 -6
  97. package/webapp/src/components/common/MetricCard.vue +0 -43
  98. package/webapp/src/components/common/StatusBadge.vue +0 -45
  99. package/webapp/src/components/dashboard/MessageStatusCard.vue +0 -50
  100. package/webapp/src/components/dashboard/PerformanceCard.vue +0 -38
  101. package/webapp/src/components/dashboard/ThroughputChart.vue +0 -182
  102. package/webapp/src/components/dashboard/TopQueuesTable.vue +0 -53
  103. package/webapp/src/components/layout/AppLayout.vue +0 -110
  104. package/webapp/src/components/layout/AppSidebar.vue +0 -304
  105. package/webapp/src/components/messages/MessageDetailPanel.vue +0 -242
  106. package/webapp/src/components/messages/MessageFilters.vue +0 -101
  107. package/webapp/src/components/queue-detail/PartitionList.vue +0 -79
  108. package/webapp/src/components/queue-detail/PushMessageModal.vue +0 -175
  109. package/webapp/src/components/queue-detail/QueueConfig.vue +0 -63
  110. package/webapp/src/components/queue-detail/QueueDetailHeader.vue +0 -53
  111. package/webapp/src/components/queue-detail/RecentMessages.vue +0 -76
  112. package/webapp/src/components/queues/CreateQueueModal.vue +0 -193
  113. package/webapp/src/components/queues/QueueFilters.vue +0 -90
  114. package/webapp/src/composables/useApi.js +0 -34
  115. package/webapp/src/composables/useTheme.js +0 -36
  116. package/webapp/src/main.js +0 -11
  117. package/webapp/src/router/index.js +0 -42
  118. package/webapp/src/utils/colors.js +0 -96
  119. package/webapp/src/utils/formatters.js +0 -49
  120. package/webapp/src/views/Analytics.vue +0 -377
  121. package/webapp/src/views/ConsumerGroups.vue +0 -433
  122. package/webapp/src/views/Dashboard.vue +0 -418
  123. package/webapp/src/views/Messages.vue +0 -363
  124. package/webapp/src/views/QueueDetail.vue +0 -582
  125. package/webapp/src/views/Queues.vue +0 -496
  126. package/webapp/tailwind.config.js +0 -25
  127. package/webapp/vite.config.js +0 -10
  128. /package/{assets → src/webapp-dist/assets}/queen-logo-blue.svg +0 -0
  129. /package/{assets → src/webapp-dist/assets}/queen-logo-cyan.svg +0 -0
  130. /package/{assets → src/webapp-dist/assets}/queen-logo-indigo.svg +0 -0
  131. /package/{assets → src/webapp-dist/assets}/queen-logo-orange.svg +0 -0
  132. /package/{assets → src/webapp-dist/assets}/queen-logo-pink.svg +0 -0
  133. /package/{assets → src/webapp-dist/assets}/queen-logo-purple.svg +0 -0
  134. /package/{assets → src/webapp-dist/assets}/queen-logo-rose.svg +0 -0
  135. /package/{assets → src/webapp-dist/assets}/queen-logo.svg +0 -0
@@ -1,263 +0,0 @@
1
- <svg viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
2
-
3
- <!-- Decorative sparkles -->
4
- <g id="sparkles">
5
- <circle cx="25" cy="30" r="1" fill="url(#sparkleGradient)" opacity="0.8">
6
- <animate attributeName="opacity" values="0.8;0.3;0.8" dur="3s" repeatCount="indefinite"/>
7
- </circle>
8
- <circle cx="95" cy="35" r="1.5" fill="url(#sparkleGradient)" opacity="0.6">
9
- <animate attributeName="opacity" values="0.6;1;0.6" dur="2.5s" repeatCount="indefinite"/>
10
- </circle>
11
- <circle cx="90" cy="85" r="1" fill="url(#sparkleGradient)" opacity="0.7">
12
- <animate attributeName="opacity" values="0.7;0.4;0.7" dur="2s" repeatCount="indefinite"/>
13
- </circle>
14
- <circle cx="30" cy="90" r="1.2" fill="url(#sparkleGradient)" opacity="0.5">
15
- <animate attributeName="opacity" values="0.5;0.9;0.5" dur="2.8s" repeatCount="indefinite"/>
16
- </circle>
17
- </g>
18
-
19
- <!-- Queue lines flowing (messages being managed) -->
20
- <g id="queue-lines">
21
- <!-- Left side queues -->
22
- <g opacity="0.8">
23
- <rect x="15" y="65" width="20" height="3" rx="1.5" fill="url(#queueGradient1)">
24
- <animate attributeName="x" values="15;20;15" dur="4s" repeatCount="indefinite"/>
25
- </rect>
26
- <rect x="18" y="72" width="15" height="3" rx="1.5" fill="url(#queueGradient2)">
27
- <animate attributeName="x" values="18;23;18" dur="3.5s" repeatCount="indefinite"/>
28
- </rect>
29
- <rect x="12" y="79" width="25" height="3" rx="1.5" fill="url(#queueGradient3)">
30
- <animate attributeName="x" values="12;17;12" dur="4.5s" repeatCount="indefinite"/>
31
- </rect>
32
- </g>
33
-
34
- <!-- Right side queues -->
35
- <g opacity="0.8">
36
- <rect x="85" y="65" width="20" height="3" rx="1.5" fill="url(#queueGradient1)">
37
- <animate attributeName="x" values="85;80;85" dur="4s" repeatCount="indefinite"/>
38
- </rect>
39
- <rect x="87" y="72" width="15" height="3" rx="1.5" fill="url(#queueGradient2)">
40
- <animate attributeName="x" values="87;82;87" dur="3.5s" repeatCount="indefinite"/>
41
- </rect>
42
- <rect x="83" y="79" width="25" height="3" rx="1.5" fill="url(#queueGradient3)">
43
- <animate attributeName="x" values="83;78;83" dur="4.5s" repeatCount="indefinite"/>
44
- </rect>
45
- </g>
46
- </g>
47
-
48
- <!-- Main duck with crown -->
49
- <g id="queen-duck" transform="translate(60, 60)">
50
- <!-- Shadow -->
51
- <ellipse cx="0" cy="35" rx="25" ry="8" fill="#000000" opacity="0.15"/>
52
-
53
- <!-- Body with elegant curves -->
54
- <path d="M -20 5 Q -25 15 -22 28 Q -18 38 -5 40 L 5 40 Q 18 38 22 28 Q 25 15 20 5 Q 15 -2 8 -3 L -8 -3 Q -15 -2 -20 5 Z"
55
- fill="url(#bodyGradient)" stroke="url(#bodyStroke)" stroke-width="1.5"/>
56
-
57
- <!-- Chest highlight -->
58
- <ellipse cx="0" cy="15" rx="12" ry="15" fill="url(#chestHighlight)" opacity="0.6"/>
59
-
60
- <!-- Wing detail left -->
61
- <path d="M -18 8 Q -23 12 -22 20 Q -20 25 -15 22 Q -12 18 -13 12 Z"
62
- fill="url(#wingGradient)" stroke="url(#wingStroke)" stroke-width="0.8" opacity="0.9"/>
63
-
64
- <!-- Wing detail right -->
65
- <path d="M 18 8 Q 23 12 22 20 Q 20 25 15 22 Q 12 18 13 12 Z"
66
- fill="url(#wingGradient)" stroke="url(#wingStroke)" stroke-width="0.8" opacity="0.9"/>
67
-
68
- <!-- Neck -->
69
- <path d="M -5 -3 Q -6 -8 -5 -12 L 5 -12 Q 6 -8 5 -3"
70
- fill="url(#neckGradient)" stroke="none"/>
71
-
72
- <!-- Head with better proportions -->
73
- <ellipse cx="0" cy="-18" rx="12" ry="13" fill="url(#headGradient)" stroke="url(#headStroke)" stroke-width="1.2"/>
74
-
75
- <!-- Head highlight -->
76
- <ellipse cx="-2" cy="-20" rx="6" ry="7" fill="url(#headHighlight)" opacity="0.5"/>
77
-
78
- <!-- Beak with royal touch -->
79
- <path d="M 8 -18 Q 14 -18 15 -17 Q 15 -15 14 -14 Q 13 -13 8 -14 Z"
80
- fill="url(#beakGradient)" stroke="#FCD34D" stroke-width="0.8"/>
81
-
82
- <!-- Eye with elegant details -->
83
- <ellipse cx="4" cy="-19" rx="3" ry="3.5" fill="white"/>
84
- <ellipse cx="4.5" cy="-19" rx="2" ry="2.5" fill="url(#eyeGradient)"/>
85
- <circle cx="5" cy="-19.5" r="1" fill="#1F2937"/>
86
- <circle cx="5.5" cy="-20" r="0.4" fill="white"/> <!-- Eye sparkle -->
87
-
88
- <!-- Eyelashes for feminine touch -->
89
- <path d="M 6 -22 L 7 -23.5 M 7 -21.5 L 8.5 -22.5 M 7.5 -21 L 9 -21.5"
90
- stroke="#1F2937" stroke-width="0.4" fill="none" stroke-linecap="round"/>
91
-
92
- <!-- Cheek blush -->
93
- <ellipse cx="1" cy="-15" rx="2.5" ry="1.5" fill="#FFB6C1" opacity="0.4"/>
94
-
95
- <!-- Crown - more elegant and detailed -->
96
- <g id="crown" transform="translate(0, -32)">
97
- <!-- Crown shadow -->
98
- <ellipse cx="0" cy="2" rx="12" ry="3" fill="#000000" opacity="0.1"/>
99
-
100
- <!-- Main crown shape with better design -->
101
- <path d="M -12 0 L -10 -8 L -6 -3 L -3 -10 L 0 -5 L 3 -10 L 6 -3 L 10 -8 L 12 0 Q 10 2 0 2 Q -10 2 -12 0 Z"
102
- fill="url(#crownGradient)" stroke="url(#crownStroke)" stroke-width="1.2" stroke-linejoin="round"/>
103
-
104
- <!-- Crown inner detail -->
105
- <path d="M -10 0 L -8 -6 L -5 -2 L -2 -8 L 0 -4 L 2 -8 L 5 -2 L 8 -6 L 10 0"
106
- fill="none" stroke="#FEF3C7" stroke-width="0.5" opacity="0.6"/>
107
-
108
- <!-- Center jewel (main) -->
109
- <circle cx="0" cy="-2" r="2.5" fill="url(#centerJewelGradient)" stroke="#10B981" stroke-width="0.5"/>
110
- <circle cx="0" cy="-2" r="1.5" fill="url(#jewelSparkle)" opacity="0.8"/>
111
-
112
- <!-- Side jewels -->
113
- <circle cx="-6" cy="-1" r="1.8" fill="url(#leftJewelGradient)" stroke="#059669" stroke-width="0.4"/>
114
- <circle cx="6" cy="-1" r="1.8" fill="url(#rightJewelGradient)" stroke="#047857" stroke-width="0.4"/>
115
-
116
- <!-- Small decorative gems -->
117
- <circle cx="-3" cy="-4" r="1" fill="#6EE7B7" opacity="0.9"/>
118
- <circle cx="3" cy="-4" r="1" fill="#6EE7B7" opacity="0.9"/>
119
-
120
- <!-- Crown peaks -->
121
- <circle cx="0" cy="-10" r="1.2" fill="#FEF3C7"/>
122
- <circle cx="-6" cy="-8" r="1" fill="#FEF3C7"/>
123
- <circle cx="6" cy="-8" r="1" fill="#FEF3C7"/>
124
- </g>
125
-
126
- <!-- Tail feathers -->
127
- <g id="tail" transform="translate(-22, 25)">
128
- <path d="M 0 0 Q -3 3 -2 7 Q -1 9 1 8 Q 2 5 0 0" fill="url(#tailGradient)" opacity="0.8"/>
129
- <path d="M 2 -1 Q -1 2 0 6 Q 1 8 3 7 Q 4 4 2 -1" fill="url(#tailGradient)" opacity="0.7"/>
130
- <path d="M 4 -2 Q 1 1 2 5 Q 3 7 5 6 Q 6 3 4 -2" fill="url(#tailGradient)" opacity="0.6"/>
131
- </g>
132
- </g>
133
-
134
- <!-- Gradient definitions -->
135
- <defs>
136
- <!-- Sparkle gradient -->
137
- <radialGradient id="sparkleGradient">
138
- <stop offset="0%" style="stop-color:#34D399;stop-opacity:1" />
139
- <stop offset="100%" style="stop-color:#6EE7B7;stop-opacity:0" />
140
- </radialGradient>
141
-
142
- <!-- Queue gradients -->
143
- <linearGradient id="queueGradient1" x1="0%" y1="0%" x2="100%" y2="0%">
144
- <stop offset="0%" style="stop-color:#10B981;stop-opacity:0.3" />
145
- <stop offset="50%" style="stop-color:#10B981;stop-opacity:1" />
146
- <stop offset="100%" style="stop-color:#10B981;stop-opacity:0.3" />
147
- </linearGradient>
148
-
149
- <linearGradient id="queueGradient2" x1="0%" y1="0%" x2="100%" y2="0%">
150
- <stop offset="0%" style="stop-color:#3B82F6;stop-opacity:0.3" />
151
- <stop offset="50%" style="stop-color:#3B82F6;stop-opacity:1" />
152
- <stop offset="100%" style="stop-color:#3B82F6;stop-opacity:0.3" />
153
- </linearGradient>
154
-
155
- <linearGradient id="queueGradient3" x1="0%" y1="0%" x2="100%" y2="0%">
156
- <stop offset="0%" style="stop-color:#F59E0B;stop-opacity:0.3" />
157
- <stop offset="50%" style="stop-color:#F59E0B;stop-opacity:1" />
158
- <stop offset="100%" style="stop-color:#F59E0B;stop-opacity:0.3" />
159
- </linearGradient>
160
-
161
- <!-- Body gradients -->
162
- <radialGradient id="bodyGradient" cx="50%" cy="30%">
163
- <stop offset="0%" style="stop-color:#A7F3D0;stop-opacity:1" />
164
- <stop offset="70%" style="stop-color:#6EE7B7;stop-opacity:1" />
165
- <stop offset="100%" style="stop-color:#10B981;stop-opacity:1" />
166
- </radialGradient>
167
-
168
- <linearGradient id="bodyStroke" x1="0%" y1="0%" x2="0%" y2="100%">
169
- <stop offset="0%" style="stop-color:#34D399;stop-opacity:1" />
170
- <stop offset="100%" style="stop-color:#059669;stop-opacity:1" />
171
- </linearGradient>
172
-
173
- <radialGradient id="chestHighlight">
174
- <stop offset="0%" style="stop-color:#FFFFFF;stop-opacity:0.8" />
175
- <stop offset="100%" style="stop-color:#D1FAE5;stop-opacity:0.2" />
176
- </radialGradient>
177
-
178
- <!-- Wing gradients -->
179
- <linearGradient id="wingGradient" x1="0%" y1="0%" x2="100%" y2="100%">
180
- <stop offset="0%" style="stop-color:#6EE7B7;stop-opacity:1" />
181
- <stop offset="100%" style="stop-color:#059669;stop-opacity:1" />
182
- </linearGradient>
183
-
184
- <linearGradient id="wingStroke">
185
- <stop offset="0%" style="stop-color:#10B981;stop-opacity:1" />
186
- <stop offset="100%" style="stop-color:#047857;stop-opacity:1" />
187
- </linearGradient>
188
-
189
- <!-- Neck gradient -->
190
- <linearGradient id="neckGradient" x1="0%" y1="100%" x2="0%" y2="0%">
191
- <stop offset="0%" style="stop-color:#6EE7B7;stop-opacity:1" />
192
- <stop offset="100%" style="stop-color:#86EFAC;stop-opacity:1" />
193
- </linearGradient>
194
-
195
- <!-- Head gradients -->
196
- <radialGradient id="headGradient" cx="40%" cy="40%">
197
- <stop offset="0%" style="stop-color:#BBF7D0;stop-opacity:1" />
198
- <stop offset="60%" style="stop-color:#86EFAC;stop-opacity:1" />
199
- <stop offset="100%" style="stop-color:#34D399;stop-opacity:1" />
200
- </radialGradient>
201
-
202
- <linearGradient id="headStroke">
203
- <stop offset="0%" style="stop-color:#34D399;stop-opacity:1" />
204
- <stop offset="100%" style="stop-color:#10B981;stop-opacity:1" />
205
- </linearGradient>
206
-
207
- <radialGradient id="headHighlight">
208
- <stop offset="0%" style="stop-color:#FFFFFF;stop-opacity:1" />
209
- <stop offset="100%" style="stop-color:#F0FDF4;stop-opacity:0" />
210
- </radialGradient>
211
-
212
- <!-- Beak gradient -->
213
- <linearGradient id="beakGradient" x1="0%" y1="0%" x2="100%" y2="0%">
214
- <stop offset="0%" style="stop-color:#FDE68A;stop-opacity:1" />
215
- <stop offset="100%" style="stop-color:#FCD34D;stop-opacity:1" />
216
- </linearGradient>
217
-
218
- <!-- Eye gradient -->
219
- <radialGradient id="eyeGradient">
220
- <stop offset="0%" style="stop-color:#92400E;stop-opacity:1" />
221
- <stop offset="100%" style="stop-color:#451A03;stop-opacity:1" />
222
- </radialGradient>
223
-
224
- <!-- Crown gradients -->
225
- <linearGradient id="crownGradient" x1="0%" y1="100%" x2="0%" y2="0%">
226
- <stop offset="0%" style="stop-color:#FDE68A;stop-opacity:1" />
227
- <stop offset="50%" style="stop-color:#FCD34D;stop-opacity:1" />
228
- <stop offset="100%" style="stop-color:#FEF3C7;stop-opacity:1" />
229
- </linearGradient>
230
-
231
- <linearGradient id="crownStroke">
232
- <stop offset="0%" style="stop-color:#FCD34D;stop-opacity:1" />
233
- <stop offset="100%" style="stop-color:#FBBF24;stop-opacity:1" />
234
- </linearGradient>
235
-
236
- <!-- Jewel gradients -->
237
- <radialGradient id="centerJewelGradient">
238
- <stop offset="0%" style="stop-color:#D1FAE5;stop-opacity:1" />
239
- <stop offset="100%" style="stop-color:#10B981;stop-opacity:1" />
240
- </radialGradient>
241
-
242
- <radialGradient id="leftJewelGradient">
243
- <stop offset="0%" style="stop-color:#A7F3D0;stop-opacity:1" />
244
- <stop offset="100%" style="stop-color:#059669;stop-opacity:1" />
245
- </radialGradient>
246
-
247
- <radialGradient id="rightJewelGradient">
248
- <stop offset="0%" style="stop-color:#D1FAE5;stop-opacity:1" />
249
- <stop offset="100%" style="stop-color:#047857;stop-opacity:1" />
250
- </radialGradient>
251
-
252
- <radialGradient id="jewelSparkle">
253
- <stop offset="0%" style="stop-color:#FFFFFF;stop-opacity:1" />
254
- <stop offset="100%" style="stop-color:#FFFFFF;stop-opacity:0" />
255
- </radialGradient>
256
-
257
- <!-- Tail gradient -->
258
- <linearGradient id="tailGradient" x1="0%" y1="0%" x2="100%" y2="100%">
259
- <stop offset="0%" style="stop-color:#34D399;stop-opacity:1" />
260
- <stop offset="100%" style="stop-color:#059669;stop-opacity:1" />
261
- </linearGradient>
262
- </defs>
263
- </svg>
@@ -1,19 +0,0 @@
1
- <template>
2
- <div :class="{ 'dark': isDark }" class="min-h-screen">
3
- <AppLayout>
4
- <router-view />
5
- </AppLayout>
6
- </div>
7
- </template>
8
-
9
- <script setup>
10
- import { provide } from 'vue';
11
- import AppLayout from './components/layout/AppLayout.vue';
12
- import { useTheme } from './composables/useTheme';
13
-
14
- const { isDark, toggleTheme } = useTheme();
15
-
16
- // Provide theme globally
17
- provide('theme', { isDark, toggleTheme });
18
- </script>
19
-
@@ -1,10 +0,0 @@
1
- import apiClient from './client';
2
-
3
- export const analyticsApi = {
4
- getStatus: (params) => apiClient.get('/api/v1/status', { params }),
5
- getQueues: (params) => apiClient.get('/api/v1/status/queues', { params }),
6
- getQueueDetail: (queueName, params) => apiClient.get(`/api/v1/status/queues/${queueName}`, { params }),
7
- getQueueMessages: (queueName, params) => apiClient.get(`/api/v1/status/queues/${queueName}/messages`, { params }),
8
- getAnalytics: (params) => apiClient.get('/api/v1/status/analytics', { params }),
9
- };
10
-
@@ -1,34 +0,0 @@
1
- import axios from 'axios';
2
-
3
- // Use environment variable if set, otherwise use current origin (for same-server deployment)
4
- // Falls back to localhost:6632 only in development when not served from Queen server
5
- const API_BASE_URL = import.meta.env.VITE_API_BASE_URL ||
6
- (typeof window !== 'undefined' && window.location.origin !== 'http://localhost:4000'
7
- ? window.location.origin
8
- : 'http://localhost:6632');
9
-
10
- const apiClient = axios.create({
11
- baseURL: API_BASE_URL,
12
- timeout: 30000,
13
- headers: {
14
- 'Content-Type': 'application/json',
15
- },
16
- });
17
-
18
- // Response interceptor for error handling
19
- apiClient.interceptors.response.use(
20
- (response) => response,
21
- (error) => {
22
- if (error.response) {
23
- console.error('API Error:', error.response.data);
24
- } else if (error.request) {
25
- console.error('Network Error:', error.message);
26
- } else {
27
- console.error('Error:', error.message);
28
- }
29
- return Promise.reject(error);
30
- }
31
- );
32
-
33
- export default apiClient;
34
-
@@ -1,52 +0,0 @@
1
- import apiClient from './client';
2
-
3
- export const consumersApi = {
4
- // Get consumer groups by querying status queues and extracting consumer info
5
- getConsumerGroups: async () => {
6
- try {
7
- const response = await apiClient.get('/api/v1/status/queues');
8
- const queues = response.data.queues;
9
-
10
- // Extract unique consumer groups from queue data
11
- const consumerMap = new Map();
12
-
13
- queues.forEach(queue => {
14
- // For now, we'll derive consumer groups from lag and performance data
15
- // In a real implementation, we'd need a dedicated API endpoint
16
- if (queue.lag || queue.performance) {
17
- const consumerGroup = queue.consumerGroup || '__QUEUE_MODE__';
18
-
19
- if (!consumerMap.has(consumerGroup)) {
20
- consumerMap.set(consumerGroup, {
21
- name: consumerGroup,
22
- topics: [],
23
- queues: new Set(),
24
- totalLag: 0,
25
- maxTimeLag: 0,
26
- state: 'Stable',
27
- });
28
- }
29
-
30
- const consumer = consumerMap.get(consumerGroup);
31
- consumer.queues.add(queue.name);
32
- consumer.topics.push(queue.name);
33
-
34
- if (queue.lag) {
35
- consumer.totalLag += queue.lag.offset || 0;
36
- consumer.maxTimeLag = Math.max(consumer.maxTimeLag, queue.lag.timeLagMs || 0);
37
- }
38
- }
39
- });
40
-
41
- return Array.from(consumerMap.values()).map(c => ({
42
- ...c,
43
- topics: Array.from(c.queues),
44
- members: c.topics.length,
45
- }));
46
- } catch (error) {
47
- console.error('Error fetching consumer groups:', error);
48
- return [];
49
- }
50
- },
51
- };
52
-
@@ -1,7 +0,0 @@
1
- import apiClient from './client';
2
-
3
- export const healthApi = {
4
- getHealth: () => apiClient.get('/health'),
5
- getMetrics: () => apiClient.get('/metrics'),
6
- };
7
-
@@ -1,26 +0,0 @@
1
- import apiClient from './client';
2
-
3
- export const messagesApi = {
4
- getMessages: (params) => apiClient.get('/api/v1/messages', { params }),
5
- getMessage: (transactionId) => apiClient.get(`/api/v1/messages/${transactionId}`),
6
- deleteMessage: (transactionId) => apiClient.delete(`/api/v1/messages/${transactionId}`),
7
- retryMessage: (transactionId) => apiClient.post(`/api/v1/messages/${transactionId}/retry`),
8
- moveToDLQ: (transactionId) => apiClient.post(`/api/v1/messages/${transactionId}/dlq`),
9
- getRelatedMessages: (transactionId) => apiClient.get(`/api/v1/messages/${transactionId}/related`),
10
-
11
- // Push messages
12
- pushMessages: (data) => apiClient.post('/api/v1/push', data),
13
-
14
- // Pop messages
15
- popMessages: (queue, partition, params) => {
16
- if (partition) {
17
- return apiClient.get(`/api/v1/pop/queue/${queue}/partition/${partition}`, { params });
18
- }
19
- return apiClient.get(`/api/v1/pop/queue/${queue}`, { params });
20
- },
21
-
22
- // Acknowledgment
23
- ackMessage: (data) => apiClient.post('/api/v1/ack', data),
24
- batchAck: (data) => apiClient.post('/api/v1/ack/batch', data),
25
- };
26
-
@@ -1,14 +0,0 @@
1
- import apiClient from './client';
2
-
3
- export const queuesApi = {
4
- getQueues: (params) => apiClient.get('/api/v1/resources/queues', { params }),
5
- getQueue: (queueName) => apiClient.get(`/api/v1/resources/queues/${queueName}`),
6
- deleteQueue: (queueName) => apiClient.delete(`/api/v1/resources/queues/${queueName}`),
7
- clearQueue: (queueName, partition) => {
8
- const params = partition ? { partition } : {};
9
- return apiClient.delete(`/api/v1/queues/${queueName}/clear`, { params });
10
- },
11
- configureQueue: (data) => apiClient.post('/api/v1/configure', data),
12
- getPartitions: (params) => apiClient.get('/api/v1/resources/partitions', { params }),
13
- };
14
-
@@ -1,8 +0,0 @@
1
- import apiClient from './client';
2
-
3
- export const resourcesApi = {
4
- getOverview: () => apiClient.get('/api/v1/resources/overview'),
5
- getNamespaces: () => apiClient.get('/api/v1/resources/namespaces'),
6
- getTasks: () => apiClient.get('/api/v1/resources/tasks'),
7
- };
8
-