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,418 +0,0 @@
1
- <template>
2
- <div class="dashboard-flat">
3
- <div class="py-4 px-3">
4
- <div class="space-y-2.5">
5
- <LoadingSpinner v-if="loading && !overview" />
6
-
7
- <div v-else-if="error" class="error-card">
8
- <p><strong>Error loading dashboard:</strong> {{ error }}</p>
9
- </div>
10
-
11
- <template v-else>
12
- <!-- Metric Cards - Flat -->
13
- <div class="grid grid-cols-2 lg:grid-cols-4 gap-2">
14
- <div class="metric-flat">
15
- <div class="flex items-start gap-3">
16
- <div class="metric-icon-flat bg-rose-500/10 dark:bg-rose-500/20">
17
- <svg class="w-5 h-5 text-rose-600 dark:text-rose-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
18
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 10h16M4 14h16M4 18h16" />
19
- </svg>
20
- </div>
21
- <div class="flex-1">
22
- <p class="metric-label">Queues</p>
23
- <p class="metric-value-flat-sm">{{ formatNumber(overview?.queues || 0) }}</p>
24
- <p class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
25
- Partitions: <span class="font-semibold">{{ formatNumber(overview?.partitions || 0) }}</span>
26
- </p>
27
- </div>
28
- </div>
29
- </div>
30
-
31
- <div class="metric-flat">
32
- <div class="flex items-start gap-3">
33
- <div class="metric-icon-flat bg-yellow-500/10 dark:bg-yellow-500/20">
34
- <svg class="w-5 h-5 text-yellow-600 dark:text-yellow-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
35
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
36
- </svg>
37
- </div>
38
- <div class="flex-1">
39
- <p class="metric-label">Pending</p>
40
- <p class="metric-value-flat-sm">{{ formatNumber(calculatedPending) }}</p>
41
- <p class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
42
- Processing: <span class="font-semibold">{{ formatNumber(overview?.messages?.processing || 0) }}</span>
43
- </p>
44
- </div>
45
- </div>
46
- </div>
47
-
48
- <div class="metric-flat">
49
- <div class="flex items-start gap-3">
50
- <div class="metric-icon-flat bg-green-500/10 dark:bg-green-500/20">
51
- <svg class="w-5 h-5 text-green-600 dark:text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
52
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
53
- </svg>
54
- </div>
55
- <div class="flex-1">
56
- <p class="metric-label">Completed</p>
57
- <p class="metric-value-flat-sm text-green-600 dark:text-green-400">{{ formatNumber(overview?.messages?.completed || 0) }}</p>
58
- <p class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
59
- Total in DB: <span class="font-semibold">{{ formatNumber(overview?.messages?.total || 0) }}</span>
60
- </p>
61
- </div>
62
- </div>
63
- </div>
64
-
65
- <div class="metric-flat">
66
- <div class="flex items-start gap-3">
67
- <div class="metric-icon-flat bg-red-500/10 dark:bg-red-500/20">
68
- <svg class="w-5 h-5 text-red-600 dark:text-red-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
69
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
70
- </svg>
71
- </div>
72
- <div class="flex-1">
73
- <p class="metric-label">Failed</p>
74
- <p class="metric-value-flat-sm text-red-600 dark:text-red-400">{{ formatNumber(overview?.messages?.failed || 0) }}</p>
75
- <p class="text-xs text-gray-500 dark:text-gray-400 mt-0.5">
76
- Dead Letter: <span class="font-semibold">{{ formatNumber(overview?.messages?.deadLetter || 0) }}</span>
77
- </p>
78
- </div>
79
- </div>
80
- </div>
81
- </div>
82
-
83
- <!-- Throughput Chart - Flat -->
84
- <div class="chart-flat">
85
- <div class="flex items-center justify-between mb-4">
86
- <div class="flex items-center gap-2">
87
- <div class="w-8 h-8 rounded-lg bg-rose-500/10 dark:bg-rose-500/20 flex items-center justify-center">
88
- <svg class="w-5 h-5 text-rose-600 dark:text-rose-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
89
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 12l3-3 3 3 4-4M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z" />
90
- </svg>
91
- </div>
92
- <h3 class="text-sm font-semibold text-gray-900 dark:text-gray-100">Message Throughput</h3>
93
- </div>
94
- <span class="text-xs text-gray-500 dark:text-gray-400 px-2.5 py-1 bg-gray-100 dark:bg-slate-700 rounded-full">
95
- Last Hour
96
- </span>
97
- </div>
98
- <div class="chart-area">
99
- <ThroughputChart :data="status" />
100
- </div>
101
- </div>
102
-
103
- <!-- Stats Row - Flat -->
104
- <div class="grid grid-cols-1 lg:grid-cols-2 gap-2">
105
- <div class="info-flat">
106
- <div class="flex items-center gap-2 mb-2">
107
- <div class="w-7 h-7 rounded-lg bg-purple-500/10 dark:bg-purple-500/20 flex items-center justify-center">
108
- <svg class="w-4 h-4 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
109
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
110
- </svg>
111
- </div>
112
- <h3 class="text-sm font-semibold">Message Status</h3>
113
- </div>
114
- <MessageStatusCard :data="overview?.messages" :calculated-pending="calculatedPending" />
115
- </div>
116
-
117
- <div class="info-flat">
118
- <div class="flex items-center gap-2 mb-2">
119
- <div class="w-7 h-7 rounded-lg bg-blue-500/10 dark:bg-blue-500/20 flex items-center justify-center">
120
- <svg class="w-4 h-4 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
121
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
122
- </svg>
123
- </div>
124
- <h3 class="text-sm font-semibold">System Performance</h3>
125
- </div>
126
- <PerformanceCard :data="metrics" />
127
- </div>
128
- </div>
129
-
130
- <!-- Top Queues - Flat -->
131
- <div class="table-flat">
132
- <div class="flex items-center gap-2 mb-4">
133
- <div class="w-7 h-7 rounded-lg bg-indigo-500/10 dark:bg-indigo-500/20 flex items-center justify-center">
134
- <svg class="w-4 h-4 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
135
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3" />
136
- </svg>
137
- </div>
138
- <h3 class="text-sm font-semibold text-gray-900 dark:text-gray-100">Top Queues by Activity</h3>
139
- </div>
140
- <TopQueuesTable :queues="topQueues" />
141
- </div>
142
- </template>
143
- </div>
144
- </div>
145
- </div>
146
- </template>
147
-
148
- <script setup>
149
- import { ref, computed, onMounted, onUnmounted } from 'vue';
150
- import { healthApi } from '../api/health';
151
- import { resourcesApi } from '../api/resources';
152
- import { analyticsApi } from '../api/analytics';
153
- import { queuesApi } from '../api/queues';
154
- import { formatNumber } from '../utils/formatters';
155
-
156
- import LoadingSpinner from '../components/common/LoadingSpinner.vue';
157
- import ThroughputChart from '../components/dashboard/ThroughputChart.vue';
158
- import MessageStatusCard from '../components/dashboard/MessageStatusCard.vue';
159
- import PerformanceCard from '../components/dashboard/PerformanceCard.vue';
160
- import TopQueuesTable from '../components/dashboard/TopQueuesTable.vue';
161
-
162
- const loading = ref(false);
163
- const error = ref(null);
164
- const overview = ref(null);
165
- const health = ref(null);
166
- const metrics = ref(null);
167
- const status = ref(null);
168
- const topQueues = ref([]);
169
-
170
- // Calculate pending as: total - completed - failed - deadLetter
171
- const calculatedPending = computed(() => {
172
- if (!overview.value?.messages) return 0;
173
-
174
- const total = overview.value.messages.total || 0;
175
- const completed = overview.value.messages.completed || 0;
176
- const failed = overview.value.messages.failed || 0;
177
- const deadLetter = overview.value.messages.deadLetter || 0;
178
- const processing = overview.value.messages.processing || 0;
179
-
180
- // Pending = Total - (Completed + Failed + DLQ + Processing)
181
- const pending = total - completed - failed - deadLetter - processing;
182
-
183
- return Math.max(0, pending); // Ensure non-negative
184
- });
185
-
186
- async function loadData() {
187
- loading.value = true;
188
- error.value = null;
189
-
190
- try {
191
- const [overviewRes, healthRes, metricsRes, statusRes, queuesRes] = await Promise.all([
192
- resourcesApi.getOverview(),
193
- healthApi.getHealth(),
194
- healthApi.getMetrics(),
195
- analyticsApi.getStatus(),
196
- queuesApi.getQueues(),
197
- ]);
198
-
199
- overview.value = overviewRes.data;
200
- health.value = healthRes.data;
201
- metrics.value = metricsRes.data;
202
- status.value = statusRes.data;
203
-
204
- // Get top 5 queues by total messages
205
- topQueues.value = queuesRes.data.queues
206
- .sort((a, b) => (b.messages?.total || 0) - (a.messages?.total || 0))
207
- .slice(0, 5);
208
- } catch (err) {
209
- error.value = err.message;
210
- console.error('Dashboard error:', err);
211
- } finally {
212
- loading.value = false;
213
- }
214
- }
215
-
216
- onMounted(() => {
217
- loadData();
218
-
219
- // Register refresh callback for header button
220
- if (window.registerRefreshCallback) {
221
- window.registerRefreshCallback('/', loadData);
222
- }
223
- });
224
-
225
- onUnmounted(() => {
226
- // Clean up callback
227
- if (window.registerRefreshCallback) {
228
- window.registerRefreshCallback('/', null);
229
- }
230
- });
231
- </script>
232
-
233
- <style scoped>
234
- /* Tesla-inspired flat design - no borders, no shadows */
235
-
236
- .dashboard-flat {
237
- min-height: 100%;
238
- }
239
-
240
- /* Flat metric cards - white on gray background */
241
- .metric-flat {
242
- background: #ffffff;
243
- border: none;
244
- box-shadow: none;
245
- border-radius: 0.75rem;
246
- padding: 0.75rem;
247
- transition: all 0.3s ease;
248
- }
249
-
250
- .dark .metric-flat {
251
- background: #0a0d14;
252
- }
253
-
254
- .metric-flat:hover {
255
- background: #fafafa;
256
- transform: translateY(-2px);
257
- }
258
-
259
- .dark .metric-flat:hover {
260
- background: #101319;
261
- }
262
-
263
- .metric-icon-flat {
264
- width: 2rem;
265
- height: 2rem;
266
- border-radius: 0.5rem;
267
- display: flex;
268
- align-items: center;
269
- justify-content: center;
270
- flex-shrink: 0;
271
- transition: all 0.3s ease;
272
- }
273
-
274
- .metric-flat:hover .metric-icon-flat {
275
- transform: scale(1.05);
276
- }
277
-
278
- .metric-value-flat {
279
- font-size: 2rem;
280
- font-weight: 700;
281
- line-height: 1.1;
282
- margin-top: 0.25rem;
283
- background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
284
- -webkit-background-clip: text;
285
- -webkit-text-fill-color: transparent;
286
- background-clip: text;
287
- letter-spacing: -0.02em;
288
- }
289
-
290
- .metric-value-flat-sm {
291
- font-size: 1.5rem;
292
- font-weight: 700;
293
- line-height: 1.1;
294
- margin-top: 0.125rem;
295
- background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
296
- -webkit-background-clip: text;
297
- -webkit-text-fill-color: transparent;
298
- background-clip: text;
299
- letter-spacing: -0.02em;
300
- }
301
-
302
- /* Flat chart card - white on gray background */
303
- .chart-flat {
304
- background: #ffffff;
305
- border: none;
306
- box-shadow: none;
307
- border-radius: 0.75rem;
308
- padding: 1rem;
309
- transition: all 0.3s ease;
310
- }
311
-
312
- .dark .chart-flat {
313
- background: #0a0d14;
314
- }
315
-
316
- .chart-flat:hover {
317
- background: #fafafa;
318
- }
319
-
320
- .dark .chart-flat:hover {
321
- background: #101319;
322
- }
323
-
324
- .chart-area {
325
- border: none;
326
- box-shadow: none;
327
- }
328
-
329
- /* Flat info cards - white on gray background */
330
- .info-flat {
331
- background: #ffffff;
332
- border: none;
333
- box-shadow: none;
334
- border-radius: 0.75rem;
335
- padding: 1rem;
336
- transition: all 0.3s ease;
337
- }
338
-
339
- .dark .info-flat {
340
- background: #0a0d14;
341
- }
342
-
343
- .info-flat:hover {
344
- background: #fafafa;
345
- }
346
-
347
- .dark .info-flat:hover {
348
- background: #101319;
349
- }
350
-
351
- /* Flat table card - white on gray background */
352
- .table-flat {
353
- background: #ffffff;
354
- border: none;
355
- box-shadow: none;
356
- border-radius: 0.75rem;
357
- padding: 1rem;
358
- transition: all 0.3s ease;
359
- }
360
-
361
- .dark .table-flat {
362
- background: #0a0d14;
363
- }
364
-
365
- .table-flat:hover {
366
- background: #fafafa;
367
- }
368
-
369
- .dark .table-flat:hover {
370
- background: #101319;
371
- }
372
-
373
- /* Error card - flat */
374
- .error-card {
375
- background: transparent;
376
- border: none;
377
- box-shadow: none;
378
- border-radius: 0.75rem;
379
- padding: 1rem;
380
- color: #dc2626;
381
- font-size: 0.875rem;
382
- }
383
-
384
- .dark .error-card {
385
- color: #fca5a5;
386
- }
387
-
388
- /* Override global table styles for flat look */
389
- .table-flat :deep(.table) {
390
- border: none;
391
- }
392
-
393
- .table-flat :deep(.table thead) {
394
- background: none;
395
- border-bottom: 1px solid rgba(0, 0, 0, 0.05);
396
- }
397
-
398
- .dark .table-flat :deep(.table thead) {
399
- border-bottom: 1px solid rgba(255, 255, 255, 0.05);
400
- }
401
-
402
- .table-flat :deep(.table tbody tr) {
403
- border-color: rgba(0, 0, 0, 0.03);
404
- }
405
-
406
- .dark .table-flat :deep(.table tbody tr) {
407
- border-color: rgba(255, 255, 255, 0.03);
408
- }
409
-
410
- .table-flat :deep(.table tbody tr:hover) {
411
- background: rgba(244, 63, 94, 0.03);
412
- box-shadow: none;
413
- }
414
-
415
- .dark .table-flat :deep(.table tbody tr:hover) {
416
- background: rgba(244, 63, 94, 0.05);
417
- }
418
- </style>