@redhat-cloud-services/frontend-components-advisor-components 1.0.0 → 1.0.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.
|
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var types_1 = require("../types");
|
|
8
8
|
var ViewAffectedLink = function (_a) {
|
|
9
|
-
var _b, _c;
|
|
10
9
|
var messages = _a.messages, product = _a.product, rule = _a.rule, Link = _a.linkComponent;
|
|
11
10
|
return (react_1.default.createElement(react_1.default.Fragment, null, product === types_1.AdvisorProduct.ocp
|
|
12
|
-
?
|
|
13
|
-
:
|
|
11
|
+
? rule.impacted_clusters_count > 0 && (react_1.default.createElement(Link, { key: "".concat(rule.rule_id, "-link"), to: "/recommendations/".concat(rule.rule_id) }, messages.viewAffectedClusters))
|
|
12
|
+
: rule.impacted_systems_count > 0 && (react_1.default.createElement(Link, { key: "".concat(rule.rule_id, "-link"), to: "/recommendations/".concat(rule.rule_id) }, messages.viewAffectedSystems))));
|
|
14
13
|
};
|
|
15
14
|
exports.default = ViewAffectedLink;
|
|
16
15
|
//# sourceMappingURL=ViewAffectedLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewAffectedLink.js","sourceRoot":"","sources":["../src/ViewAffectedLink/ViewAffectedLink.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAG1B,kCAA2E;AAS3E,IAAM,gBAAgB,GAAoC,UAAC,EAAgD
|
|
1
|
+
{"version":3,"file":"ViewAffectedLink.js","sourceRoot":"","sources":["../src/ViewAffectedLink/ViewAffectedLink.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAG1B,kCAA2E;AAS3E,IAAM,gBAAgB,GAAoC,UAAC,EAAgD;QAA9C,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,IAAI,UAAA,EAAiB,IAAI,mBAAA;IAAO,OAAA,CAC9G,8BAAC,eAAK,CAAC,QAAQ,QACZ,OAAO,KAAK,sBAAc,CAAC,GAAG;QAC7B,CAAC,CAAE,IAAuB,CAAC,uBAAuB,GAAG,CAAC,IAAI,CACtD,8BAAC,IAAI,IAAC,GAAG,EAAE,UAAG,IAAI,CAAC,OAAO,UAAO,EAAE,EAAE,EAAE,2BAAoB,IAAI,CAAC,OAAO,CAAE,IACtE,QAAQ,CAAC,oBAAoB,CACzB,CACR;QACH,CAAC,CAAE,IAAwB,CAAC,sBAAsB,GAAG,CAAC,IAAI,CACtD,8BAAC,IAAI,IAAC,GAAG,EAAE,UAAG,IAAI,CAAC,OAAO,UAAO,EAAE,EAAE,EAAE,2BAAoB,IAAI,CAAC,OAAO,CAAE,IACtE,QAAQ,CAAC,mBAAmB,CACxB,CACR,CACU,CAClB;AAd+G,CAc/G,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AdvisorProduct } from '../types';
|
|
3
3
|
var ViewAffectedLink = function (_a) {
|
|
4
|
-
var _b, _c;
|
|
5
4
|
var messages = _a.messages, product = _a.product, rule = _a.rule, Link = _a.linkComponent;
|
|
6
5
|
return (React.createElement(React.Fragment, null, product === AdvisorProduct.ocp
|
|
7
|
-
?
|
|
8
|
-
:
|
|
6
|
+
? rule.impacted_clusters_count > 0 && (React.createElement(Link, { key: "".concat(rule.rule_id, "-link"), to: "/recommendations/".concat(rule.rule_id) }, messages.viewAffectedClusters))
|
|
7
|
+
: rule.impacted_systems_count > 0 && (React.createElement(Link, { key: "".concat(rule.rule_id, "-link"), to: "/recommendations/".concat(rule.rule_id) }, messages.viewAffectedSystems))));
|
|
9
8
|
};
|
|
10
9
|
export default ViewAffectedLink;
|
|
11
10
|
//# sourceMappingURL=ViewAffectedLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewAffectedLink.js","sourceRoot":"","sources":["../../src/ViewAffectedLink/ViewAffectedLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAmC,MAAM,UAAU,CAAC;AAS3E,IAAM,gBAAgB,GAAoC,UAAC,EAAgD
|
|
1
|
+
{"version":3,"file":"ViewAffectedLink.js","sourceRoot":"","sources":["../../src/ViewAffectedLink/ViewAffectedLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAmC,MAAM,UAAU,CAAC;AAS3E,IAAM,gBAAgB,GAAoC,UAAC,EAAgD;QAA9C,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,IAAI,UAAA,EAAiB,IAAI,mBAAA;IAAO,OAAA,CAC9G,oBAAC,KAAK,CAAC,QAAQ,QACZ,OAAO,KAAK,cAAc,CAAC,GAAG;QAC7B,CAAC,CAAE,IAAuB,CAAC,uBAAuB,GAAG,CAAC,IAAI,CACtD,oBAAC,IAAI,IAAC,GAAG,EAAE,UAAG,IAAI,CAAC,OAAO,UAAO,EAAE,EAAE,EAAE,2BAAoB,IAAI,CAAC,OAAO,CAAE,IACtE,QAAQ,CAAC,oBAAoB,CACzB,CACR;QACH,CAAC,CAAE,IAAwB,CAAC,sBAAsB,GAAG,CAAC,IAAI,CACtD,oBAAC,IAAI,IAAC,GAAG,EAAE,UAAG,IAAI,CAAC,OAAO,UAAO,EAAE,EAAE,EAAE,2BAAoB,IAAI,CAAC,OAAO,CAAE,IACtE,QAAQ,CAAC,mBAAmB,CACxB,CACR,CACU,CAClB;AAd+G,CAc/G,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
2
|
+
"name": "@redhat-cloud-services/frontend-components-advisor-components",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Components to be used in Advisor applications and integrations.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "esm/index.js",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "npm run build:js && npm run build:esm && npm run build:css && npm run build:packages",
|
|
12
|
+
"build:js": "tsc -p tsconfig.cjs.json",
|
|
13
|
+
"build:esm": "tsc --module es2015 --target es5",
|
|
14
|
+
"build:css": "node ../../scripts/build-styles.js",
|
|
15
|
+
"build:packages": "node ../../scripts/build-packages.js --forceTypes",
|
|
16
|
+
"start": "concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\""
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/RedHatInsights/frontend-components.git"
|
|
21
|
+
},
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "Apache-2.0",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/RedHatInsights/frontend-components/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/advisor-components#readme",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@patternfly/react-core": ">=4.162.16",
|
|
30
|
+
"@patternfly/react-icons": ">=4.3.5",
|
|
31
|
+
"prop-types": ">=15.6.2",
|
|
32
|
+
"react": ">=16.14.0 || >=17.0.0",
|
|
33
|
+
"react-dom": ">=16.14.0 || >=17.0.0",
|
|
34
|
+
"react-router-dom": "^5.0.0"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@redhat-cloud-services/frontend-components": ">=3.0.0",
|
|
38
|
+
"lodash": "^4.17.21",
|
|
39
|
+
"react-markdown": "^8.0.1",
|
|
40
|
+
"rehype-raw": "^6.1.1",
|
|
41
|
+
"rehype-sanitize": "^5.0.1"
|
|
42
|
+
}
|
|
43
43
|
}
|