@bigbinary/neeto-webhooks-frontend 2.2.19 → 2.3.0-beta1
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.
- package/README.md +2 -1
- package/dist/NeetoWebhooks.js +11 -6
- package/dist/NeetoWebhooks.js.map +1 -1
- package/dist/cjs/NeetoWebhooks.js +11 -6
- package/dist/cjs/NeetoWebhooks.js.map +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -42,8 +42,9 @@ The engine is used to manage webhooks across neeto products.
|
|
|
42
42
|
```
|
|
43
43
|
3. Add this line to your application's `config/routes.rb` file:
|
|
44
44
|
```ruby
|
|
45
|
-
mount NeetoWebhooksEngine::Engine
|
|
45
|
+
mount NeetoWebhooksEngine::Engine, at: "/neeto_webhooks"
|
|
46
46
|
```
|
|
47
|
+
**NOTE: The mount point must be `/neeto_webhooks` and cannot be changed to any other path.**
|
|
47
48
|
4. Run the following command to copy the migrations from the engine to the host
|
|
48
49
|
application:
|
|
49
50
|
```zsh
|
package/dist/NeetoWebhooks.js
CHANGED
|
@@ -9,7 +9,6 @@ import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
|
9
9
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
10
10
|
import Header$2 from '@bigbinary/neeto-molecules/Header';
|
|
11
11
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
12
|
-
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
13
12
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
14
13
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
15
14
|
import Table from '@bigbinary/neetoui/Table';
|
|
@@ -82,7 +81,7 @@ var withReactQuery = function withReactQuery(Component) {
|
|
|
82
81
|
return QueryWrapper;
|
|
83
82
|
};
|
|
84
83
|
|
|
85
|
-
var baseUrl$2 = "/
|
|
84
|
+
var baseUrl$2 = "/neeto_webhooks";
|
|
86
85
|
var fetch$1 = function fetch(webhookId, params) {
|
|
87
86
|
return axios.get("".concat(baseUrl$2, "/webhooks/").concat(webhookId, "/deliveries"), {
|
|
88
87
|
params: params
|
|
@@ -469,7 +468,10 @@ var Deliveries = function Deliveries(_ref) {
|
|
|
469
468
|
text: t("neetoWebhooks.delivery.title")
|
|
470
469
|
}]);
|
|
471
470
|
if (isLoading) {
|
|
472
|
-
return /*#__PURE__*/jsx(
|
|
471
|
+
return /*#__PURE__*/jsx("div", {
|
|
472
|
+
className: "flex justify-center items-center w-full h-screen",
|
|
473
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
474
|
+
});
|
|
473
475
|
}
|
|
474
476
|
return /*#__PURE__*/jsxs(Container, {
|
|
475
477
|
className: "w-full",
|
|
@@ -517,7 +519,7 @@ var Deliveries = function Deliveries(_ref) {
|
|
|
517
519
|
};
|
|
518
520
|
var Deliveries$1 = withReactQuery(Deliveries);
|
|
519
521
|
|
|
520
|
-
var baseUrl$1 = "/
|
|
522
|
+
var baseUrl$1 = "/neeto_webhooks/webhooks";
|
|
521
523
|
var fetch = function fetch(params) {
|
|
522
524
|
return axios.get(baseUrl$1, {
|
|
523
525
|
params: params
|
|
@@ -602,7 +604,7 @@ var useDestroyWebhook = function useDestroyWebhook(options) {
|
|
|
602
604
|
});
|
|
603
605
|
};
|
|
604
606
|
|
|
605
|
-
var baseUrl = "/
|
|
607
|
+
var baseUrl = "/neeto_webhooks/events/all";
|
|
606
608
|
var all = function all() {
|
|
607
609
|
return axios.get(baseUrl);
|
|
608
610
|
};
|
|
@@ -1266,7 +1268,10 @@ var Webhooks = function Webhooks(_ref) {
|
|
|
1266
1268
|
setIsDeleteAlertOpen(true);
|
|
1267
1269
|
}, []);
|
|
1268
1270
|
if (isLoading) {
|
|
1269
|
-
return /*#__PURE__*/jsx(
|
|
1271
|
+
return /*#__PURE__*/jsx("div", {
|
|
1272
|
+
className: "flex justify-center items-center w-full h-screen",
|
|
1273
|
+
children: /*#__PURE__*/jsx(Spinner, {})
|
|
1274
|
+
});
|
|
1270
1275
|
}
|
|
1271
1276
|
return /*#__PURE__*/jsxs(Container, {
|
|
1272
1277
|
className: containerClassName,
|