diff --git a/src/web/snippet/pluginInfo.html b/src/web/snippet/pluginInfo.html
index 71e514d..0bf87c9 100644
--- a/src/web/snippet/pluginInfo.html
+++ b/src/web/snippet/pluginInfo.html
@@ -136,6 +136,11 @@
The relative path of the web UI
|
+
+ Registered Subscribed Event Path |
+ Path where subscribed events are sent
+ Not registered |
+
@@ -159,6 +164,23 @@
API keys are generated automatically by Zoraxy when a plugin with permitted API endpoints is enabled.
+ Plugin IntroSpect Event Subscriptions
+ The following events are subscribed to by this plugin and will be sent to the plugin's event subscription path:
+
+
+
+ Event Type |
+ Comment |
+
+
+
+
+
+ No subscribed events |
+
+
+
+
@@ -234,11 +256,16 @@
if (registeredUIProxyPath == null || registeredUIProxyPath == "") {
registeredUIProxyPath = "No UI registered";
}
+ let subscriptionPath = data.Spec.subscription_path;
+ if (subscriptionPath == null || subscriptionPath == "") {
+ subscriptionPath = "Not registered";
+ }
$("#static_capture_ingress").text(staticCaptureIngress);
$("#dynamic_capture_sniffing_path").text(dynamicCaptureSniffingPath);
$("#dynamic_capture_ingress").text(dynamicCaptureIngress);
$("#registered_ui_proxy_path").text(registeredUIProxyPath);
+ $("#registered_subscription_path").text(subscriptionPath);
//Update permitted API endpoints
let apiEndpoints = data.Spec.permitted_api_endpoints;
@@ -255,9 +282,24 @@
});
$("#plugin_permitted_api_endpoints").html(endpointRows);
}
+
+ //Update subscribed events if available
+ let subscriptionsEvents = data.Spec.subscriptions_events; // this is a map of event_type to comment
+ if (subscriptionsEvents == null || Object.keys(subscriptionsEvents).length == 0) {
+ $("#plugin_subscriptions_events").html('No subscribed events |
');
+ } else {
+ let eventRows = '';
+ Object.keys(subscriptionsEvents).forEach(function(eventType) {
+ eventRows += `
+ ${eventType} |
+ ${subscriptionsEvents[eventType] || "No comment"} |
+
`;
+ });
+ $("#plugin_subscriptions_events").html(eventRows);
+ }
+
});
}
-
$(".advanceSettings").accordion();
function closeThisWrapper(){