@attraccess/plugin-rabbitmq 0.1.0-nightly.1016.1 → 0.1.0-nightly.1036.1

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.
@@ -181,7 +181,7 @@ function useDetection(mqttServerId) {
181
181
  //#endregion
182
182
  //#region frontend/src/RabbitmqListBadge.tsx
183
183
  var { Chip: Chip$2 } = await importShared("@heroui/react");
184
- var { RabbitIcon: RabbitIcon$2 } = await importShared("lucide-react");
184
+ var { RabbitIcon: RabbitIcon$1 } = await importShared("lucide-react");
185
185
  function RabbitmqListBadge({ mqttServerId }) {
186
186
  const { result } = useDetection(mqttServerId);
187
187
  if (!result?.isRabbitMQ) return null;
@@ -190,11 +190,10 @@ function RabbitmqListBadge({ mqttServerId }) {
190
190
  color: "accent",
191
191
  variant: "soft",
192
192
  size: "sm",
193
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitIcon$2, { className: "rmq:w-3.5 rmq:h-3.5" }), "RabbitMQ"]
193
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitIcon$1, { className: "rmq:w-3.5 rmq:h-3.5" }), "RabbitMQ"]
194
194
  });
195
195
  }
196
196
  var en_default = {
197
- page: { "description": "RabbitMQ management plugin. RabbitMQ MQTT servers show a detection badge and connection-status panel in the MQTT settings, and broker users can be managed (create, edit, permissions, delete) from the MQTT server detail view." },
198
197
  status: {
199
198
  "detected": "detected",
200
199
  "refresh": "Refresh RabbitMQ status",
@@ -265,7 +264,6 @@ var en_default = {
265
264
  }
266
265
  };
267
266
  var de_default = {
268
- page: { "description": "Plugin zur Verwaltung von RabbitMQ. RabbitMQ-MQTT-Server zeigen in den MQTT-Einstellungen eine Erkennungsmarkierung und ihren Verbindungsstatus. Broker-Benutzer können in der Detailansicht des MQTT-Servers angelegt, bearbeitet und gelöscht sowie ihre Berechtigungen verwaltet werden." },
269
267
  status: {
270
268
  "detected": "erkannt",
271
269
  "refresh": "RabbitMQ-Status aktualisieren",
@@ -344,8 +342,8 @@ var useRabbitmqTranslations = () => useTranslations({
344
342
  }, { escapeValues: false });
345
343
  //#endregion
346
344
  //#region frontend/src/RabbitmqStatusPanel.tsx
347
- var { Alert: Alert$3, AlertContent: AlertContent$3, AlertDescription: AlertDescription$3, Button: Button$3, Card: Card$2, Chip: Chip$1, Spinner: Spinner$1 } = await importShared("@heroui/react");
348
- var { CheckCircle2Icon, RabbitIcon: RabbitIcon$1, RefreshCwIcon: RefreshCwIcon$1, XCircleIcon } = await importShared("lucide-react");
345
+ var { Alert: Alert$3, AlertContent: AlertContent$3, AlertDescription: AlertDescription$3, Button: Button$3, Card: Card$1, Chip: Chip$1, Spinner: Spinner$1 } = await importShared("@heroui/react");
346
+ var { CheckCircle2Icon, RabbitIcon, RefreshCwIcon: RefreshCwIcon$1, XCircleIcon } = await importShared("lucide-react");
349
347
  function StatusRow({ ok, label, value }) {
350
348
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
351
349
  className: "rmq:flex rmq:items-center rmq:justify-between rmq:gap-3 rmq:py-1.5",
@@ -365,15 +363,15 @@ function RabbitmqStatusPanel({ mqttServerId }) {
365
363
  const { t } = useRabbitmqTranslations();
366
364
  const { result, loading, refresh } = useDetection(mqttServerId);
367
365
  if (!result?.isRabbitMQ) return null;
368
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$2, {
366
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1, {
369
367
  "data-cy": `rabbitmq-status-panel-${mqttServerId}`,
370
368
  className: "rmq:w-full rmq:border rmq:border-default-200 rmq:dark:border-default-100",
371
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$2.Header, {
369
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1.Header, {
372
370
  className: "rmq:flex rmq:flex-row rmq:items-center rmq:justify-between rmq:gap-2",
373
371
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
374
372
  className: "rmq:flex rmq:items-center rmq:gap-2",
375
373
  children: [
376
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitIcon$1, { className: "rmq:w-5 rmq:h-5 rmq:text-accent-soft-foreground" }),
374
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitIcon, { className: "rmq:w-5 rmq:h-5 rmq:text-accent-soft-foreground" }),
377
375
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
378
376
  className: "rmq:text-base rmq:font-semibold rmq:text-default-700",
379
377
  children: "RabbitMQ"
@@ -395,7 +393,7 @@ function RabbitmqStatusPanel({ mqttServerId }) {
395
393
  isDisabled: loading,
396
394
  children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner$1, { size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCwIcon$1, { className: "rmq:w-4 rmq:h-4" })
397
395
  })]
398
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$2.Content, {
396
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1.Content, {
399
397
  className: "rmq:flex rmq:flex-col rmq:gap-1",
400
398
  children: [
401
399
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusRow, {
@@ -874,7 +872,7 @@ function RabbitmqUserFormModal({ mqttServerId, isOpen, user, vhosts, onClose, on
874
872
  }
875
873
  //#endregion
876
874
  //#region frontend/src/RabbitmqUserPanel.tsx
877
- var { Alert, AlertContent, AlertDescription, Button, Card: Card$1, Chip, Modal, ModalBackdrop, ModalBody, ModalContainer, ModalDialog, ModalFooter, ModalHeader, ModalHeading, Spinner, Table, TableBody, TableCell, TableColumn, TableContent, TableHeader, TableRow, TableScrollContainer } = await importShared("@heroui/react");
875
+ var { Alert, AlertContent, AlertDescription, Button, Card, Chip, Modal, ModalBackdrop, ModalBody, ModalContainer, ModalDialog, ModalFooter, ModalHeader, ModalHeading, Spinner, Table, TableBody, TableCell, TableColumn, TableContent, TableHeader, TableRow, TableScrollContainer } = await importShared("@heroui/react");
878
876
  var { KeyRoundIcon, PencilIcon, PlusIcon, RefreshCwIcon, Trash2Icon, UsersIcon } = await importShared("lucide-react");
879
877
  var { useCallback, useEffect, useRef, useState } = await importShared("react");
880
878
  function PermissionChips({ user }) {
@@ -946,11 +944,11 @@ function RabbitmqUserPanel({ mqttServerId }) {
946
944
  setDeleting(false);
947
945
  }
948
946
  };
949
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1, {
947
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
950
948
  "data-cy": `rabbitmq-user-panel-${mqttServerId}`,
951
949
  className: "rmq:w-full rmq:border rmq:border-default-200 rmq:dark:border-default-100",
952
950
  children: [
953
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1.Header, {
951
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card.Header, {
954
952
  className: "rmq:flex rmq:flex-row rmq:items-center rmq:justify-between rmq:gap-2",
955
953
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
956
954
  className: "rmq:flex rmq:items-center rmq:gap-2",
@@ -981,7 +979,7 @@ function RabbitmqUserPanel({ mqttServerId }) {
981
979
  })]
982
980
  })]
983
981
  }),
984
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card$1.Content, {
982
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card.Content, {
985
983
  className: "rmq:flex rmq:flex-col rmq:gap-3",
986
984
  children: [
987
985
  loadError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Alert, {
@@ -1127,8 +1125,6 @@ function RabbitmqUserPanel({ mqttServerId }) {
1127
1125
  }
1128
1126
  //#endregion
1129
1127
  //#region frontend/src/plugin.tsx
1130
- var { Card } = await importShared("@heroui/react");
1131
- var { RabbitIcon } = await importShared("lucide-react");
1132
1128
  var MQTT_SERVER_DETAIL_SLOT = "mqtt.server.detail";
1133
1129
  var MQTT_SERVER_LIST_ROW_SLOT = "mqtt.server.list.row";
1134
1130
  function RabbitmqDetailSlot({ mqttServerId }) {
@@ -1139,25 +1135,6 @@ function RabbitmqDetailSlot({ mqttServerId }) {
1139
1135
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitmqStatusPanel, { mqttServerId }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitmqUserPanel, { mqttServerId })]
1140
1136
  });
1141
1137
  }
1142
- function RabbitmqPage() {
1143
- const { t } = useRabbitmqTranslations();
1144
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1145
- className: "rmq:flex rmq:flex-col rmq:gap-6 rmq:p-6 rmq:max-w-4xl rmq:mx-auto",
1146
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1147
- className: "rmq:flex rmq:items-center rmq:gap-3",
1148
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitIcon, { className: "rmq:w-6 rmq:h-6 rmq:text-accent-soft-foreground" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
1149
- className: "rmq:text-2xl rmq:font-semibold rmq:text-default-800",
1150
- children: "RabbitMQ"
1151
- })]
1152
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
1153
- className: "rmq:border rmq:border-default-200 rmq:dark:border-default-100",
1154
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
1155
- className: "rmq:text-sm rmq:text-default-500",
1156
- children: t("page.description")
1157
- }) })
1158
- })]
1159
- });
1160
- }
1161
1138
  var RabbitmqPlugin = class {
1162
1139
  getPluginName() {
1163
1140
  return "rabbitmq-plugin@0.1.0";
@@ -1170,20 +1147,6 @@ var RabbitmqPlugin = class {
1170
1147
  deactivate() {}
1171
1148
  onApiAuthStateChange(_authData) {}
1172
1149
  onApiEndpointChange(_endpoint) {}
1173
- getRoutes() {
1174
- return [{
1175
- path: "/rabbitmq",
1176
- authRequired: "resources.update",
1177
- element: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitmqPage, {})
1178
- }];
1179
- }
1180
- getSidebarItems() {
1181
- return [{
1182
- label: "RabbitMQ",
1183
- path: "/rabbitmq",
1184
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RabbitIcon, { className: "rmq:w-5 rmq:h-5" })
1185
- }];
1186
- }
1187
1150
  getSlotContributions() {
1188
1151
  return [{
1189
1152
  slotId: MQTT_SERVER_DETAIL_SLOT,
@@ -75,7 +75,7 @@ var exportSet = /* @__PURE__ */ new Set([
75
75
  ]);
76
76
  var moduleMap = { "./plugin": () => {
77
77
  dynamicLoadingCss(["style.css"], false, "./plugin");
78
- return __federation_import("./__federation_expose_Plugin-DGTGfene.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
78
+ return __federation_import("./__federation_expose_Plugin-BG8GPMGB.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
79
79
  } };
80
80
  var seen = {};
81
81
  var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
@@ -10,23 +10,16 @@
10
10
 
11
11
  :root, :host {
12
12
  --rmq-spacing: .25rem;
13
- --rmq-container-4xl: 56rem;
14
13
  --rmq-text-xs: .75rem;
15
14
  --rmq-text-xs--line-height: calc(1 / .75);
16
15
  --rmq-text-sm: .875rem;
17
16
  --rmq-text-sm--line-height: calc(1.25 / .875);
18
17
  --rmq-text-base: 1rem;
19
18
  --rmq-text-base--line-height: calc(1.5 / 1);
20
- --rmq-text-2xl: 1.5rem;
21
- --rmq-text-2xl--line-height: calc(2 / 1.5);
22
19
  --rmq-font-weight-medium: 500;
23
20
  --rmq-font-weight-semibold: 600;
24
21
  }
25
22
 
26
- .rmq\:mx-auto {
27
- margin-inline: auto;
28
- }
29
-
30
23
  .rmq\:mt-0\.5 {
31
24
  margin-top: calc(var(--rmq-spacing) * .5);
32
25
  }
@@ -55,10 +48,6 @@
55
48
  height: calc(var(--rmq-spacing) * 5);
56
49
  }
57
50
 
58
- .rmq\:h-6 {
59
- height: calc(var(--rmq-spacing) * 6);
60
- }
61
-
62
51
  .rmq\:w-3\.5 {
63
52
  width: calc(var(--rmq-spacing) * 3.5);
64
53
  }
@@ -71,18 +60,10 @@
71
60
  width: calc(var(--rmq-spacing) * 5);
72
61
  }
73
62
 
74
- .rmq\:w-6 {
75
- width: calc(var(--rmq-spacing) * 6);
76
- }
77
-
78
63
  .rmq\:w-full {
79
64
  width: 100%;
80
65
  }
81
66
 
82
- .rmq\:max-w-4xl {
83
- max-width: var(--rmq-container-4xl);
84
- }
85
-
86
67
  .rmq\:flex-1 {
87
68
  flex: 1;
88
69
  }
@@ -143,10 +124,6 @@
143
124
  gap: calc(var(--rmq-spacing) * 4);
144
125
  }
145
126
 
146
- .rmq\:gap-6 {
147
- gap: calc(var(--rmq-spacing) * 6);
148
- }
149
-
150
127
  .rmq\:rounded-lg {
151
128
  border-radius: calc(var(--radius) * 1);
152
129
  }
@@ -164,19 +141,10 @@
164
141
  padding: calc(var(--rmq-spacing) * 4);
165
142
  }
166
143
 
167
- .rmq\:p-6 {
168
- padding: calc(var(--rmq-spacing) * 6);
169
- }
170
-
171
144
  .rmq\:py-1\.5 {
172
145
  padding-block: calc(var(--rmq-spacing) * 1.5);
173
146
  }
174
147
 
175
- .rmq\:text-2xl {
176
- font-size: var(--rmq-text-2xl);
177
- line-height: var(--tw-leading, var(--rmq-text-2xl--line-height));
178
- }
179
-
180
148
  .rmq\:text-base {
181
149
  font-size: var(--rmq-text-base);
182
150
  line-height: var(--tw-leading, var(--rmq-text-base--line-height));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attraccess/plugin-rabbitmq",
3
- "version": "0.1.0-nightly.1016.1",
3
+ "version": "0.1.0-nightly.1036.1",
4
4
  "description": "Official Attraccess integration for RabbitMQ.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {